GUI "entire video" frame selection generates malformed --frames 0,-N, causing IndexError
#2807
-
DescriptionRunning inference/tracking from the GUI (Predict → Run Inference) with the frame Selecting "entire video" reproducibly produces Environment
Steps to reproduce
ExpectedInference runs over all frames of the video. ActualThe GUI builds a command containing Generated command (paths redacted):sleap track --gui --data_path /path/to/project.slp --video_index 0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@Taschimoz Thank you for catching this bug Kerry! This is a quirk from a mismatch in indexing methods (See #2790 ) I am guessing your video have 10245 frames in total. CLI uses 0-indexing, so it goes 0th frame, 1th frame, and your last frame would be the 10244th frame. On the GUI it shows up at X/10245 frames because there are in total 10245 frames. There must've been some misconfiguration happening on the GUI side, I am looking into this right now. Best, |
Beta Was this translation helpful? Give feedback.
-
|
I believe I figured out the error and fixed it (will be out in the next release). In the mean time, try the fix I described above (or just omit the Best, |
Beta Was this translation helpful? Give feedback.
@Taschimoz Thank you for catching this bug Kerry!
This is a quirk from a mismatch in indexing methods (See #2790 ) I am guessing your video have 10245 frames in total. CLI uses 0-indexing, so it goes 0th frame, 1th frame, and your last frame would be the 10244th frame. On the GUI it shows up at X/10245 frames because there are in total 10245 frames.
There must've been some misconfiguration happening on the GUI side, I am looking into this right now.
Best,
Tom