sleap
sleap copied to clipboard
Export as analysis CSV or HDF5 requires tracks
Bug description
Exporting as an analysis CSV or HDF5 only works if you have predictions and have run tracking. If you just want predictions without tracking on SLEAP, the CSV or HDF5 will only export a single instance, even if you have dozens of predicted instances. This occurs using the export functions on the GUI, as well as using sleap-convert
on commandline.
As an example, I predicted the first few frames of a video via commandline with or without tracking, and then exported as CSV.
Expected behaviour
In the video provided, there should be roughly 30 instances per frame. If I perform tracking after prediction, I see roughly 30 instances per frame in the analysis CSV as expected.
Actual behaviour
But if I only run predictions and then export to an analysis CSV, I see only a single instance per frame. I suspect the issue is that the tracks
column is blank and this is assumed to be populated in the export scripts
Your personal set up
I have tried this on macOS using the export option in the GUI of sleap-label
and on a linux-based HPC using sleap-convert
on commandline. I suspect the specific details of the OS isn't important here. I can provide more details if you cannot replicate the bug.
I have tried this both for .h5 and .CSV analysis export. Same issue.