-
Hello! How can I apply a track to every instance in a single animal tracking context? 'Propagate Track Labels' option does not appear to work on already labeled data unless I misunderstand it's function; do I have to apply tracks manually to already labeled data? What about predictions, they are showing no labels at present even after putting track numbers on a few labeled frames and running inference with tracking. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @rfkova, Why do you need the track set for a single instance tracking model? It's implicit if there is only a single animal per frame. Is it for compatibility with downstream analyses or something? In any case, here's a quick script that you should be able to run on Colab or in a local script or notebook to do this: import sleap
labels = sleap.load_file("labels.v000.slp")
track = sleap.Track(name="animal") # the name is optional and be whatever you want
for instance in labels.instances():
instance.track = track
labels.save("labels.v001.slp") The propagate track labels option refers to manually switching track identities to fix swaps that happen during multi-instance tracking. It just means that switching the tracks in one frame will also be applied in all subsequent frames. Not really relevant here if I understand correctly. Talmo |
Beta Was this translation helpful? Give feedback.
Hi @rfkova,
Why do you need the track set for a single instance tracking model? It's implicit if there is only a single animal per frame. Is it for compatibility with downstream analyses or something?
In any case, here's a quick script that you should be able to run on Colab or in a local script or notebook to do this:
The propagate track labels option refers to manually switching track identities to fix swaps that happen during multi-instance tracking. It …