You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it has an excellent interface for lazy-loading videos into Python, which makes them available for indexing with numpy-style syntax.
It support multiple video backends ( supports reading through FFMPEG (the default), pyav, or OpenCV) and it works very well. It was a great help for this animation (each animation iteration just loads the corresponding video frame in memory, without having to load the entire video, or to extract the frames as images beforehands).
There's also FastVideoReader - a class within the napari-pyav plugin that is mentioned in the discussion linked above. It uses pyav as a backend, and is reportedly, well, fast.
That said, for ethology I think sleap_io would make the most sense, because of the multiple backend support, and similar use-case to SLEAP (i.e. need to extract frames for labelling etc.). The other two solutions are more designed for video playback in napari.
torchcodec allows for videos to be decoded as PyTorch tensors, on CPU and CUDA GPU. It has nice sampling functionalities. It's in early development stages.
It's an evolution from torchvision's read_video, which is demoed in a nice tutorial applying RAFT to predict optic flow in a video.
Other options:
sleap_io
, being "a numpy-like interface, using opencv as a backend".The text was updated successfully, but these errors were encountered: