Multiple Instances for the Same Animal, Even Though Max Instances is Restricted in Training Pipeline #1676
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @majaneubauer, UpdateThe user was running tracking through the CLI! There was a missing argument to specify which type of tracker to use ( After looking at your discussion - we did a little test case over here. Similar to you, I trained a bottom-up (non-supervised-id) model on a dataset with two animals. I then ran inference on "user-labeled frames" two different times. The first time, I ran inference with max instances set to "No max" and 2 instances were predicted on my frame - as expected. The second time, I ran inference on the same "user-labeled frames" with max instances set to 1 and only 1 instance was predicted on my frame - also as expected. But not great for recreating the issue or figuring out what is goin on. Max of 1 predicted instance (yellow-boxed instance) per user-labeled frameI am fairly sure that I checked that max instances was working before releasing... but perhaps we did not identify an edge case that you are running into. Inference configurationI call inference as part of the Inference Pipeline (which uses an already trained model) whereas you have run inference as the next step after training a new model in the Training Pipeline - I should do that to see if anything is amiss there. After running inference another time on the same frames, we see that the previous predictions were replaced with new predictionsI though maybe there were predictions left over from another inference run and that might be why there were more predictions than we had specified. Although I was pretty sure we remove predictions before adding new ones, I double checked the code to verify and ran a test which show that: yes, predictions are indeed removed before adding new predicitons. A few differences between our runs
Thanks, |
Beta Was this translation helpful? Give feedback.
Hi @roomrys,
Thank you for your quick reply!
I have been doing some testing on my own the past two days and just now realised where I went wrong. Exporting the training package specifying the max instances to 2 and predicting on user-labeled frames was not the problem. Rather, I made a mistake while running inference on Colab using
sleap-track
. I reported my issue in #1679, which I have now closed. I had to specify mytracking.tracker
toflowmaxtracks
in order fortracking.max_tracking
to work.I will go ahead and close this discussion as well now, but thank you for your efforts, I appreciate it!
Best,
Maja