-
Couldn't load subscription status.
- Fork 119
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi @talmo,
I was wondering if your fix #678 is only for labeled frames in maDLC format?
I have a single-animal project in dlc==2.2.0.6 I am trying to import and get a similar error as in previous issues #428 and #676:
(sleap) C:\Users\hidalggc>sleap-label
Saving config: C:\Users\hidalggc/.sleap/1.2.2/preferences.yaml
Restoring GUI state...
Software versions:
SLEAP: 1.2.2
TensorFlow: 2.6.3
Numpy: 1.19.5
Python: 3.7.12
OS: Windows-10-10.0.19041-SP0
Happy SLEAPing! :)
Traceback (most recent call last):
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\sleap\gui\commands.py", line 270, in importDLC
self.execute(ImportDeepLabCut)
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\sleap\gui\commands.py", line 236, in execute
command().execute(context=self, params=kwargs)
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\sleap\gui\commands.py", line 133, in execute
self.do_with_signal(context, params)
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\sleap\gui\commands.py", line 157, in do_with_signal
cls.do_action(context, params)
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\sleap\gui\commands.py", line 728, in do_action
labels = Labels.load_deeplabcut(filename=params["filename"])
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\sleap\io\dataset.py", line 1985, in load_deeplabcut
return read(filename, for_object="labels", as_format="deeplabcut")
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\sleap\io\format\main.py", line 99, in read
return disp.read(filename, *args, **kwargs)
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\sleap\io\format\dispatch.py", line 56, in read
return adaptor.read(file, *args, **kwargs)
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\sleap\io\format\deeplabcut.py", line 78, in read
file=file, full_video=full_video, *args, **kwargs
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\sleap\io\format\deeplabcut.py", line 201, in read_frames
x, y = data[(node, "x")][i], data[(node, "y")][i]
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\pandas\core\frame.py", line 3457, in __getitem__
return self._getitem_multilevel(key)
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\pandas\core\frame.py", line 3508, in _getitem_multilevel
loc = self.columns.get_loc(key)
File "C:\Users\hidalggc\Anaconda3\envs\sleap\lib\site-packages\pandas\core\indexes\multi.py", line 2932, in get_loc
return self._engine.get_loc(key)
File "pandas\_libs\index.pyx", line 725, in pandas._libs.index.BaseMultiIndexCodesEngine.get_loc
File "pandas\_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
File "pandas\_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
File "pandas\_libs\hashtable_class_helper.pxi", line 1832, in pandas._libs.hashtable.UInt64HashTable.get_item
File "pandas\_libs\hashtable_class_helper.pxi", line 1841, in pandas._libs.hashtable.UInt64HashTable.get_item
KeyError: 324
here is a subset of the training-dataset: test_CollectedData_Sarah.csv
Thank you in advance, and congratulations on your great documentation it really is above any expectation!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working