-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sleap generates dozens/hundres of unique instances even though only trained on 2 instances #1606
Comments
Hi @catubc, Info you didn't ask for that may or may not helpSLEAP currently has 2 methods for tracking: ID-based tracking using a neural network (which requires annotating the tracks for each labeled block) and temporal-based tracking (which just uses a distance or overlap metric between blocks in sequential frames). For ID-based tracking I would expect there to only be however many tracks you have annotated. For temporal-based tracking, there is now an options to set a limit of how many tracks are created (an instead recycle unused tracks). This option is here:
. A question for youI am a bit suprised by these extraneous track generations since... well... we're tracking blocks here (that don't move much and should be trivial to temporally-track). What are your tracking settings (I am assuming you are using temporal-based tracking)? A screenshot of the GUI should work. Another piece that would help is a screenshot (or a few) of the frames where these switches happen. The most often case of a switch is when the item being tracked is occluded - all it takes is a single frame, then if "Connect Single Track Breaks" is not set to True, a new track will be generated for the next frame that the item is found again.
Thanks, |
Hi Liezl :) Thank you for the quick response - as always! We trained and predicted on these back in March, when I think you didn't have the track limit option. I'll definitely try that. Re: Your questions:
We'll keep you updated when we try the track limit, but if you have any more suggestions let us know! Best, |
Hi @lisadiez, Ah it looks like the tracking settings in #1224 are the same as I would have suggested below... and the switches to new tracks do indeed occur when both blocks are lost simultaneously. Since there are only two objects being tracked (making it more likely that only one goes missing at a time) - on the older GUI, you can check "Cull to Target Instance Count" and then set the "Target Number of Instances Per Frame" to 2. Additionally, what will really help here is to check "Connect Single Track Breaks".
Thanks, |
Closing -- as of v1.3.3 we now have track-local queues to enforce the maximum number of tracks globally. |
Hello
We are long time users of sleap. We are currently using sleap to track the location of 2 physical wooden blocks (that have slightly different colors/features) inside an animal cage.
Sleap does a great job in some videos, but in others it generates dozens, sometimes hundreds of tracks as in the image attached.
Is there something easy we can do to avoid this? I thought sleap would only ever generate max of n tracks based on training data.
Thanks for the help.
@catubc
The text was updated successfully, but these errors were encountered: