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
Right now, creating a video with sio.Video(filename) will not initialize the backend, which might lead to weird downstream errors like:
NotImplementedError: Cannot serialize video backend for video: Video(filename="/home/jovyan/talmolab-smb/datasets/mot/animal/sleap/SLAP_M74/four_mice/val/top-10072022151549-0000_h265_CRF12_denoised.mp4", shape=None, backend=NoneType)
We could handle backend initialization (like in sio.Video.from_filename constructor) in the post init similarly to how we handle the sio.Labels(lfs) syntax here:
Right now, creating a video with
sio.Video(filename)
will not initialize the backend, which might lead to weird downstream errors like:We could handle backend initialization (like in
sio.Video.from_filename
constructor) in the post init similarly to how we handle thesio.Labels(lfs)
syntax here:sleap-io/sleap_io/model/labels.py
Lines 58 to 69 in 45941db
It might also be good to refactor both of these into an instance method in case we want to do these manually.
The text was updated successfully, but these errors were encountered: