Replies: 4 comments 3 replies
-
This is especially useful for projects with many videos where it takes forever to generate predictions on each one since it requires so many subprocess startups. But how do we do this without breaking console character limits (4096 - 8191 depending on OS)? This is especially tricky since absolute paths may end up quite long. That said, I agree that for scenarios that fit in the command line length constraints, we should support that. For calls with more paths, perhaps we should be able to pass in a YAML file, CSV, text file with one path per line, etc. so that we can generate that file temporarily just to pass the paths in. |
Beta Was this translation helpful? Give feedback.
-
Similarly it would be helpful if in the predict on dropdown there was an option to run inference on all untracked videos in a project. This would be helpful for individuals who want to add multiple untracked videos to an established project and run inference without rerunning tracking on previously tracked videos (by selecting all videos) or individually running tracking on each newly added video (by selecting entire current video for each new video). I'm not familiar with Python, but a possible idea from something I do in MATLAB would be to add code that checks which file names in the project already have tracking, skips those, and run inference on those that do not. |
Beta Was this translation helpful? Give feedback.
-
I have written a small script for my project that might help with that. After I've trained my model and was happy with its performance, I needed it to predict on about 50 videos. I did not want to go through each video individually, so this is what I came up with:
This was for the specific top-down-id-model I was training, but the CLI commands can just be adapted to whatever you need. Maybe this helps :) Best, |
Beta Was this translation helpful? Give feedback.
-
This is in a future release! See #1777. |
Beta Was this translation helpful? Give feedback.
-
Currently, to run inference on multiple videos via the
sleap-track
command, users need to call this command many times either manually or in a script. It might be a nice feature to allow multiple videos/inputs.Beta Was this translation helpful? Give feedback.
All reactions