Extracting node positions from labeled frames - pre training/inference #1636
Replies: 3 comments 2 replies
-
Hello, @anaeguiguren!, In regards to exporting your data as a csv, you can go ahead and go to File in SLEAP and select (Export Analysis CSV...). You can also use this notebook as a reference. Let us know if you have any other questions! |
Beta Was this translation helpful? Give feedback.
-
Hello @anaeguiguren! Once you are getting accurate frame-by-fame predictions, just as you mentioned you are! You now want to run predictions for the entire video clips so you can correct the instances across frames. 1. You can select "Run Inference..." under Predict. 2. Then select a tracker method: You can leave the default settings for the similarity and matching method. If you’d like to get further explanation on the different methods for tracking you can reference this part of the documentation. 3. Lastly, you want to proofread once you have your predicted tracks, to make sure to correct any mistakes. The two most common mistakes are Mistaken identities and Lost identities. To correct these: a.) Mistaken identities: If there is an identity swap you can transpose a pair of instances by selecting (Ctrl+1-9) to swap them back in the correct order. Or you can go under Tracks and select "Set Instance Track" and use the drop menu to select the correct track. b.) Lost identities: If there is an instance that was lost you can use the shortcut (Ctrl+e) to go to “Next Track Spawn Frame” to go to the last frame where the new track showed to correct the track from there. You can reference your Keyboard shortcuts under Help. 4. Once you are done with proofreading, you can export your data for analysis as a CSV file! Anything else let us know! |
Beta Was this translation helpful? Give feedback.
-
Hi Mariela, |
Beta Was this translation helpful? Give feedback.
-
Hi!
I wanted to ask if there was a way of accessing the node positions for each instance in each frame from the .slp data (or .h5)?
I am currently working on a project analyzing the orientation and spatial spread of sperm whales from drone footage. So far, I have had really nice results from just 200 frames labeled, with varying flight altitudes (hence, individual sizes) and lighting structures. It's even doing a good job at identifying whales that are slightly below the surface!
However, As I label more frames, I would like to conduct some analyses on the resulting positions from manually labelled instances. I followed the instructions in the https://github.com/talmolab/sleap/blob/develop/docs/notebooks/Data_structures.ipynb notebook, and can see the location for each node in each instance and each frame by looking at the labeled_frame.instances
But I'm not sure if there's a way incorporated into the program to export this data as a csv?
Thanks so much in advance for your time, and for creating this software and making it so user-friendly despite it being a pretty complex system! :)
Beta Was this translation helpful? Give feedback.
All reactions