-
I am tracking two animals (one always on the left and the other on the right). When I use the top-down model (without the ID option, as the top-down ID model performs poorly in predictions), I don't get any tracks in the output. Is there a way to export the results for both animals and manually assign track IDs to the points? Additionally, when I use the top-down ID model, I sometimes get multiple IDs like 1,1,1,1 or 2,2,2,2 for the same animal. Is there a way to export the results and merge these track IDs for each animal? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
Hi @neugun,
When you run inference, what are you setting for the tracking parameters? I would recommend:
with the rest of the parameters set to default values. Originally posted by @roomrys in #1924 (comment)
I could write you a script to manually set the Originally posted by @roomrys in #1924 (comment)
Yes, the track names are re-used, but each of them is a different
Since the Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi Liezl, I hope you're doing well. I wanted to update you on the tracking parameters I've been working with for the top-down model. Yesterday, I tried setting the Tracker to "simple," the Max Number of Tracks to 2, and enabled "Connect Single Track Breaks," while leaving the other parameters at their default settings. The results are different this time—I can now find the tracks in the H5 files, but across 8 videos, I ended up with hundreds of track names. You previously mentioned that after running inference, tracks can be manually renamed to more meaningful names in the Instances dock/table. However, with over 50 tracks in a single video, manual renaming doesn't seem feasible. Is there a way to rename the tracks using code rather than doing it manually? My current strategy is to remove all tracks and use other methods to handle the data. Additionally, for exporting results and manually assigning track IDs, would you be able to help by writing a script to manually set the track IDs? I've noticed that only half of the points (for one animal, not both) were extracted in the H5 file, so it seems this script would need to work with the SLP files rather than H5. I've been working on this for several months, encountering different problems each time. About six months ago, I had to set it aside, but I'm determined to solve it now. This time, I'm focusing on getting the correct results using the top-down model and ensuring accurate keypoint tracking. Thanks so much for your help. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi Liezl, Thanks a lot for the code.
Best, |
Beta Was this translation helpful? Give feedback.
-
I also noticed the new Sleap can export CSV files, maybe I can apply this to CSV file and solve the track issue? Thanks, Neugun |
Beta Was this translation helpful? Give feedback.
-
Thanks! Looks like I can only retrain the model to try a sigma value of 5? If I select the trained model, it will not allow me to change the sigma value. Best, Neugun |
Beta Was this translation helpful? Give feedback.
Hi @neugun,
When you run inference, what are you setting for the tracking parameters? I would recommend:
with the rest of the parameters set to default values.
Originally posted by @roomrys in #1924 (comment)
I could write you a script to manually set the
Track
s afterwards if you are not having any luck with the temporal tracker (with parameters…