-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backward compatible (1.3.0a0 > 1.2.2 to 1.2.6) #1217
Comments
Hi @aereimer, Do you mind sharing the specific error you're getting now? That'll help narrow down the cause. Cheers, Talmo |
Hi @talmo, sorry for not pasting the log here before. So, here I tried to open the slp project (created initially in 1.2.2, modified in 1.2.6, and finally modified and saved using 1.3.0a0) using versions < 1.3.0a0 versions. The error below appears specifically when I tried to open the project using version 1.2.6 ( the same thing happened with other versions, such as 1.2.9). Just one thing, I did not modified the skeleton or added more bodyparts while using the 1.3.0a0 . Thanks for checking this! Parabéns pelo excelente trabalho!
|
Dear aereimer, The issue might be that you are trying to convert '.slp' files, when the notebook is designed for converting '.h5' files to '.csv'. Try directly inputting the '.h5' output, rather than converting it into '.slp' format first. Best wishes, Thomas |
Dear @Toshea111, Thanks for pointing this out. I believe I’ve tried first the slp file because the colab file originally was pointing to a slp file ( [email protected] ). But I also tried the h5 file (exported from SLEAP v1.3.0a0 ) and it did not work, the error message is below - that's also the reason I've asked about changes in the output file in this newer version. Thanks once again for you input. `KeyError Traceback (most recent call last) 4 frames /usr/local/lib/python3.9/dist-packages/sleap_io/io/slp.py in read_labels(labels_path) /usr/local/lib/python3.9/dist-packages/sleap_io/io/slp.py in read_tracks(labels_path) /usr/local/lib/python3.9/dist-packages/sleap_io/io/utils.py in read_hdf5_dataset(filename, dataset) h5py/_objects.pyx in h5py._objects.with_phil.wrapper() h5py/_objects.pyx in h5py._objects.with_phil.wrapper() /usr/local/lib/python3.9/dist-packages/h5py/_hl/group.py in getitem(self, name) h5py/_objects.pyx in h5py._objects.with_phil.wrapper() h5py/_objects.pyx in h5py._objects.with_phil.wrapper() h5py/h5o.pyx in h5py.h5o.open() KeyError: "Unable to open object (object 'tracks_json' doesn't exist)"` |
Dear aereimer, Looking at the link, I think that is an older version of the notebook. There is an updated version here: Let me know if the issue persists. Best wishes, Thomas |
Hi @aereimer, I can sheepishly confirm that the file structure has changed. We added two new attributes in the The field we added is currently not used except for provided template skeletons, so we could selectively write the field depending on whether the skeleton is a template (manually specified via API - only by those looking to add to our collection of template skeletons). I opened PR #1222 to rectify this. Thanks, |
Dear @Toshea111, I have tried the new script that you shared, and it works great! It is compatible with all SLEAP versions that I have tested. I made minor changes to the script to suit my project's requirements (as it has a single track; I still wanted to get the score for each body part/frame), but apart from that, it is perfect. Thank you once again for sharing the notebook! Best, |
Dear @roomrys, Thanks for getting back to me and for your prompt attention to this matter. Best, |
Dear Adriano, Excellent, and good to hear that it works with the latest version. @roomrys I am happy to incorporate this into a future analysis notebook, if that would be useful? Best wishes, Thomas |
Hi @Toshea111, Yes! This notebook is gaining a lot of traction. We could even convert your notebook into an adaptor for using in the GUI/API/CLI instead of having it as a separate entity. If you start a PR, we can collaborate (not sure if you would be able work on a talmolab/sleap branch, but I can pop to your fork to get the basic structure set-up). We would need to
I think copying some of the notebook code into the different methods in the adaptor would be a great start for integration. Let me know what you think. Totally understand if this is more than what you wanted to bite off, and I can take over whatever you'd rather not tackle at the moment. Thanks, |
Dear Liezl, I would be happy to collaborate, although I fear that my expertise is limited. I made the fork 'Toshea111/sleap' a while back, and will invite you as a collaborator. The notebook is currently located in: https://github.com/Toshea111/sleap/tree/develop/docs/notebooks The impetus for the notebook is some downstream software that I am working on, thus further integration would be useful. Best wishes, Thomas |
This fix is now available in the latest release v1.3.0. To install:
|
Dear Liezl, Much appreciated. Best wishes, Thomas |
"Greetings! I recently experimented with the alpha version 1.3.0a0 of and tested it by opening a project that I initiated in previous versions (1.2.2 to 1.2.6). I added some additional labeled frames, trained the model, and performed successful inferences. However, I encountered issues when attempting to convert the h5 output to slp and then the slp file to csv using a script by @Toshea111 (#1089 (comment)). I suspect that the incompatibility problem might be related to changes in the file structure of the new version's output. Could you confirm if this issue is due to a bug in the newest version or if the file structure of the new version has indeed changed?"
The text was updated successfully, but these errors were encountered: