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 would be great to support fixing paths to videos at the level of a Labels object.
With #82, we now have Video.replace_filename to gracefully handle updating the filename with special logic for dealing with different backend states.
It would be great to have a couple of higher level utils that support at least two different paths for fixing paths:
Given a list of video paths, replace them directly and restart the backends.
Given a mapping (dict) of old to new paths, replace them without being sensitive to the ordering. This is necessary if we want to do it before loading the labels since we won't know the ordering ahead of time.
Given an old and new path prefix, replace them all and restart backends. This is the most convenient and covers the common case where the directory structure hasn't changed, but the root of the path did (e.g., /home/user/videos/0.mp4 -> D:/videos/0.mp4).
Once we have the basic functionality to do that, then it'd be good to integrate that in the high level sio.load_file API through a video_filenames kwarg so we can load and fix the paths in one go.
A nice to have second PR would try some of these strategies and other heuristics to automatically fix paths at load time.
The text was updated successfully, but these errors were encountered:
It would be great to support fixing paths to videos at the level of a
Labels
object.With #82, we now have
Video.replace_filename
to gracefully handle updating the filename with special logic for dealing with different backend states.It would be great to have a couple of higher level utils that support at least two different paths for fixing paths:
/home/user/videos/0.mp4
->D:/videos/0.mp4
).Once we have the basic functionality to do that, then it'd be good to integrate that in the high level
sio.load_file
API through avideo_filenames
kwarg so we can load and fix the paths in one go.A nice to have second PR would try some of these strategies and other heuristics to automatically fix paths at load time.
The text was updated successfully, but these errors were encountered: