talmolab / sleap

A deep learning framework for multi-animal pose tracking.
https://sleap.ai
Other
433 stars 96 forks source link

Issue Opening SLEAP Project #1903

Open justinecorsilia opened 2 months ago

justinecorsilia commented 2 months ago

Bug description

I have an exported SLEAP training package with a .slp file inside that I have added videos to and labeled additional instances. However, when I try to re-open this file using SLEAP, nothing opens, and I get this error:

Screenshot 2024-08-14 at 5 43 56 AM Screenshot 2024-08-14 at 5 44 04 AM

I am using SLEAP version 1.3.1, and when I attempt to open the file with version 1.3.3 the same issue occurs

talmo commented 2 months ago

Hi @justinecorsilia,

Thanks for sharing the error logs!

It looks like there's an issue with reading an embedded HDF5 video, which is likely related to a training package. Note that SLP files with embedded images aren't intended to be further labeled/edited, so if that's the case let us know and we can recommend alternatives to the workflow.

Some next steps:

  1. Let us know what steps you took to generate this SLP file so we can diagnose how the error might have come about.
  2. Consider sharing the problematic SLP file with us so we can take a peek into its contents to see what's going on.
  3. Have you tried this since updating to v1.3.3 following #1906?

Cheers,

Talmo

justinecorsilia commented 2 months ago

Hi Talmo, Thank you so much. I created a training package using the top down model. I realized after training that I needed to label more frames, but instead of adding them to the initial file, I added videos and labeled frames to the .slp file inside the package folder. Once I did that, I was no longer able to open the file. I shared the file using the link you provided as well. Thanks again

justinecorsilia commented 2 months ago

Hi Talmo, I just wanted to reach out and see if there are any updates on this? Thanks again -Justine

talmo commented 1 month ago

Hi @justinecorsilia,

Super sorry about the delay!! I totally missed this earlier when you replied 😓

Right, the issue here is related to adding new labels to a .pkg.slp file. These package files aren't really intended for continued labeling, so what you want to do is to go back to the original labels that you exported it from and add your labels there.

You can still import predictions created from running inference on the .pkg.slp file (e.g., suggestions) and SLEAP will merge them to the original labels files appropriately.

Let me know if that makes sense, doesn't work for you, or if you have any questions!

Cheers,

Talmo