Using SLEAP on a directory of images (predefined frames) rather than a video #1976
-
Hi please can you provide some help. I am benchmarking different animal pose estimation algorithms against each other. I need to compare pose estimation on the specific frames that I have already extracted from my videos. Is it possible to train a model and/or run inference on a directory containing extracted frames rather than on the original video? Thank you so much for your time |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Thank you for starting a new discussion! We appreciate your input and will review it soon. Warning A friendly reminder that this is a public forum. Please be cautious when clicking links, downloading files, or running scripts posted by others.
Stay safe and happy SLEAPing! Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi @Mattshanevdberg, Yes sleap-io has functionality for reading and writing labels in a variety of formats. What format are your annotations in and what format would you like them to be saved to? Thanks, Elizabeth |
Beta Was this translation helpful? Give feedback.
Hi @Mattshanevdberg,
There are a few way to do this.
--frames
.sleap-io
. You will read your labels.slp using sleap_io.load_slp which returns a Labels object which has labeled_frames as an attribute.