Skip to content

Fixes FPS issue and image caching#419

Merged
BryonLewis merged 2 commits intomasterfrom
image-cache-fix
Nov 4, 2020
Merged

Fixes FPS issue and image caching#419
BryonLewis merged 2 commits intomasterfrom
image-cache-fix

Conversation

@BryonLewis
Copy link
Copy Markdown
Collaborator

@BryonLewis BryonLewis commented Nov 3, 2020

Fixes #420

FPS fix - the FPS was automatically a number so it was failing in the computed property to return the proper value and was defaulting everything to 10.

Image Cache fix - The original image caching would cache 6 seconds of data initially for image sequences. This works for standard images but not for 16MB+ images. It's trying to load all 7 images (at 1 frame per second) without any order priority so the first image may be the last to load. I defaulted to loading the initial image first, then followed by caching so you can move through at least some images quickly and the system isn't sitting there doing nothing while you gawk at the first image.

Please test and make sure I didn't completely mess something up.

@BryonLewis BryonLewis requested a review from subdavis November 3, 2020 18:34
@subdavis
Copy link
Copy Markdown
Contributor

subdavis commented Nov 3, 2020

This works, but not how I expected

  • I set the FPS for my image sequence to 5.
  • I reloaded the page
  • more than 5 (28) images were loaded
  • I clicked more than 30 frames ahead
  • 32 images were loaded again.

How many seconds of images are being loaded? It looks like 5 ahead, plus a frame or two behind?

Screenshot from 2020-11-03 17-09-04

I'm testing on video now.

Copy link
Copy Markdown
Contributor

@subdavis subdavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Video also works. Ran pipeline on video on viame.kitware.com and locally.

Broken in prod, works locally.

@BryonLewis
Copy link
Copy Markdown
Collaborator Author

How many seconds of images are being loaded? It looks like 5 ahead, plus a frame or two behind?

There is a specification in the ImageAnnotator. By default it is 6 seconds total with a 90-10 split, 90% of the frames to the front, 10% of the frames behind. This update should force it to download the first frame initially, then start the caching.

What you describe sounds about how it should work with 6 seconds forward and then 10% of the backwards (3 frames, but I probably include the current frame so 2) if they aren't loaded yet. Eventually it may make sense to do the standard continually loading frames in the background like a typical video would instead of this isolated sections.

@BryonLewis BryonLewis merged commit da7ec70 into master Nov 4, 2020
@BryonLewis BryonLewis deleted the image-cache-fix branch November 5, 2020 18:44
BryonLewis pushed a commit that referenced this pull request Nov 16, 2020
Update base image for girder worker

Fixes FPS issue and image caching (#419)

* fixing fps and modifying cache

* mend

Update docker docs (#379)

Co-authored-by: Brandon Davis <git@subdavis.com>

Update blank.yml (#415)

Upgrade to node LTS

Co-authored-by: Jacob Nesbitt <jjnesbitt2@gmail.com>

Add checkbuild.sh (#425)

Add load and save for JSON annotations (#414)

* Add load and save for JSON annotations

* Relax json file name requirement

* SIP

* Implement settings, sanity checks, separate loading of datasets

* WIP

* remove settings page

Fix deploy.yml

Update day strings (#430)

Fix typo in library README

Allow setting of arbitrary attributes on video player (#435)

* Mute video prop

* Allow setting arbitrary attributes

Downgrade urllib3 (#439)

Fix inverse interpolation (#433)

Run pipelines enabled incorrectly (#441)

Add dummy generators

Very minor fixes
BryonLewis added a commit that referenced this pull request Nov 16, 2020
Trying to get the styling and layout setup

Updating some styling

Updated styling a bit and added toggling

Started updating the editor and connecting it to the attributes endpoint

Updating styling and fixing various issues

mend

mend

Electron (#397)

* add electron

* Add missing api methods

* Fix build errors for electron, add to CI

* Address comments

Update deploy to only Thursday

Update base image for girder worker

Fixes FPS issue and image caching (#419)

* fixing fps and modifying cache

* mend

Update docker docs (#379)

Co-authored-by: Brandon Davis <git@subdavis.com>

Update blank.yml (#415)

Upgrade to node LTS

Co-authored-by: Jacob Nesbitt <jjnesbitt2@gmail.com>

Add checkbuild.sh (#425)

Add load and save for JSON annotations (#414)

* Add load and save for JSON annotations

* Relax json file name requirement

* SIP

* Implement settings, sanity checks, separate loading of datasets

* WIP

* remove settings page

Fix deploy.yml

Update day strings (#430)

Fix typo in library README

Allow setting of arbitrary attributes on video player (#435)

* Mute video prop

* Allow setting arbitrary attributes

Downgrade urllib3 (#439)

Fix inverse interpolation (#433)

Run pipelines enabled incorrectly (#441)

Minor fix to attributes

Minor ui fixes

Addressing changes

Enable pinch zoom on mobile (#440)

Co-authored-by: Brandon Davis <git@subdavis.com>

Add dummy generators (#438)

conversion to using api for attributes editing

converted attribute editor and added in additional editing

Updating UI interactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] ImageAnnotator not following FPS for caching

2 participants