Issue opening a file created in version 1.4 in 1.5.2 and an issue training on new videos in 1.5.2 using a model from 1.4 #2584
Replies: 1 comment 2 replies
-
|
Hi @BobbyLangston , Thanks for reporting! Issue One: File Loading ErrorThis seems to be a bug in SLEAP 1.5.2 that occurs when loading projects containing image sequences (multiple image files as frames rather than a video file). The bug should be fixed in the latest pre-release. Solution: Upgrade to the pre-release version which contains the fix: uv tool install sleap --prerelease=allowThis will install SLEAP 1.6.0a3 (or later) which includes the fix. Issue Two: Transfer Learning ErrorThe model architecture looks correct - the weights transferred successfully from TensorFlow to PyTorch, and the head is outputting 7 channels as expected. However, the error suggests your training data (.slp file) has a skeleton with 37 nodes, which is causing the mismatch. Could you run the following command and share the output so we can verify the skeleton in your labels file? Note: If your file has multiple skeletons, you can fix this with the sleap-io CLI (as shown below). This keeps the most frequently used skeleton and removes the others. See the docs for more options. # Preview what will be fixed
sio fix your_file.slp --consolidate-skeletons --dry-run -v
# Apply the fix
sio fix your_file.slp --consolidate-skeletons -o fixed.slp Let us know if you have any questions! Thanks, Divya |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I am trying to use SLEAP to track sperm cells and have had great success and accuracy using the 1.4 version. This software is great but unfortunately I have had issues continuing the training using the 1.5.2 version.
System Info
Software versions:
SLEAP: 1.5.2
Numpy: 2.3.5
Python: 3.13.11
OS: Windows-11-10.0.26200-SP0
Issue One
The first issue is when I try to open a SLEAP file created in 1.4 using 1.5.2, I get the following error:
TypeError: _path_exists: path should be string, bytes, os.PathLike or integer, not listThis is what the full read out is in the terminal:
I am not sure what is going on but if anyone has any insight that would be great. Please let me know if more information on this issue would be helpful.
Issue Two
The second issue occurs when I try to continue a training session on a new video using a model from 1.4. The same skeleton is being used. I am using the animal top-down approach and the error only occurs when I get to training the centered instance.
RuntimeError: The size of tensor a (7) must match the size of tensor b (37) at non-singleton dimension 1The full error is:
Any information on this would be helpful. Ideally, I would be able to continue using the old model to track new videos in 1.5.
Let me know if any additional information would be helpful.
Thanks, Bobby.
Beta Was this translation helpful? Give feedback.
All reactions