-
Hello, I just started using Sleap in my study project to train a model for pose-estimation in mice. Traceback (most recent call last):
File "C:\Studienprojekt\envs\sleap\lib\site-packages\sleap\gui\commands.py", line 441, in openSkeleton
self.execute(OpenSkeleton)
File "C:\Studienprojekt\envs\sleap\lib\site-packages\sleap\gui\commands.py", line 242, in execute
command().execute(context=self, params=kwargs)
File "C:\Studienprojekt\envs\sleap\lib\site-packages\sleap\gui\commands.py", line 138, in execute
self.do_with_signal(context, params)
File "C:\Studienprojekt\envs\sleap\lib\site-packages\sleap\gui\commands.py", line 164, in do_with_signal
context.signal_update(cls.topics)
File "C:\Studienprojekt\envs\sleap\lib\site-packages\sleap\gui\commands.py", line 215, in signal_update
self.update_callback(what)
File "C:\Studienprojekt\envs\sleap\lib\site-packages\sleap\gui\app.py", line 1169, in on_data_update
self.skeleton_dock.nodes_table.model().items = self.state["skeleton"]
File "C:\Studienprojekt\envs\sleap\lib\site-packages\sleap\gui\dataviews.py", line 103, in items
item_data = self.item_to_data(obj, item)
File "C:\Studienprojekt\envs\sleap\lib\site-packages\sleap\gui\dataviews.py", line 405, in item_to_data
return dict(name=item.name, symmetry=obj.get_symmetry_name(item.name))
File "C:\Studienprojekt\envs\sleap\lib\site-packages\sleap\skeleton.py", line 798, in get_symmetry_name
symmetric_node = self.get_symmetry(node)
File "C:\Studienprojekt\envs\sleap\lib\site-packages\sleap\skeleton.py", line 774, in get_symmetry
node_node = self.find_node(node)
File "C:\Studienprojekt\envs\sleap\lib\site-packages\sleap\skeleton.py", line 573, in find_node
raise ValueError("Found multiple nodes named ({}).".format(name))
ValueError: Found multiple nodes named (name). Can someone please tell me if they ran into the same problem in the past or know how to fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @racenico, It seems like you have multiple nodes with the same name. Is that the case? Please let us know what your skeleton looks like the in the skeletons tab in the GUI. Here are the lines in the code this refers to https://github.com/talmolab/sleap/blob/076f3dda2036c5833dec35ff4479d3ae1c7f7f55/sleap/skeleton.py#L555C1-L575C20. It does seem like the outdated How familiar are you with Python? You may find this notebook helpful for debugging your issue https://colab.research.google.com/drive/1OmnmZIM64pWFqoeNkUm2QnpOWmPwoUbN?usp=sharing. Namely something like
Best, Elizabeth |
Beta Was this translation helpful? Give feedback.
-
I see so everything is working for your supervisor? Make sure you have duplicates of your project so you don't mess something up and we recommend saving versions of your file to track changes made, especially to skeletons. This makes it much easier to backtrack if any mistakes are made. It sounds like a fresh install of the latest version of SLEAP in an isolated conda environment might help. Instructions are here depending on your OS: https://github.com/talmolab/sleap/releases/tag/v1.3.3. Best, Elizabeth |
Beta Was this translation helpful? Give feedback.
-
In the following discussion: we found that the underlying problem comes from an upgrade to This is not a problem in itself IF staying on the same/compatible version of |
Beta Was this translation helpful? Give feedback.
Hello @eberrigan,
thanks for the reply.
My problem with the skeleton is that I couldn't even add a New Node in Sleap and always got that error It didn't appear in the skeletons tab. Also the skeleton is working in the Sleap version of my supervisor.
I replaced .format(name) in the file with an f-string but that didn't change anything.
I am not really that proficient with python and have some difficulties loading my sleap-project file in the notebook.
I also just tried adjusting the version of my python and the packages used in sleap because I realised there apparently are known issues with tensorflow. I am sorry that I overlooked that before posting my question here.
I now reached a point…