Skip to content

RuntimeError: x must be a sequence #2592

@tommigara

Description

@tommigara

Is there an existing issue for this?

  • I have searched the existing issues

Bug description

Hi all!
Thanks in advance for the help. I am using the latest Deeplabcut version 2.3.9. and I am encountering issues while training my own model. In particular, I am using the GUI and I am stuck at the 'Label frames' page. I manually labeled my videos and when I press 'Check labels' it gives me this error:

Traceback (most recent call last):

File "C:\Users\tgaravaldi\Desktop\virtualenvs\DLCenv\lib\site-packages\deeplabcut\gui\tabs\label_frames.py", line 62, in check_labels
check_labels(self.root.config, visualizeindividuals=self.root.is_multianimal)
File "C:\Users\tgaravaldi\Desktop\virtualenvs\DLCenv\lib\site-packages\deeplabcut\generate_training_dataset\trainingsetmanipulation.py", line 361, in check_labels
visualization.make_labeled_images_from_dataframe(
File "C:\Users\tgaravaldi\Desktop\virtualenvs\DLCenv\lib\site-packages\deeplabcut\utils\visualization.py", line 346, in make_labeled_images_from_dataframe
pt.set_data(*coord)
File "C:\Users\tgaravaldi\Desktop\virtualenvs\DLCenv\lib\site-packages\matplotlib\lines.py", line 666, in set_data
self.set_xdata(x)
File "C:\Users\tgaravaldi\Desktop\virtualenvs\DLCenv\lib\site-packages\matplotlib\lines.py", line 1290, in set_xdata
raise RuntimeError('x must be a sequence')
RuntimeError: x must be a sequence

Operating System

Winodws 11

DeepLabCut version

2.3.9.

DeepLabCut mode

single animal

Device type

cpu

Steps To Reproduce

packages:
absl-py==2.1.0
alabaster==0.7.16
app-model==0.2.7
appdirs==1.4.4
asttokens==2.4.1
astunparse==1.6.3
attrs==23.2.0
Babel==2.15.0
blosc2==2.6.2
build==1.2.1
cachetools==5.3.3
cachey==0.2.1
certifi==2024.2.2
charset-normalizer==3.3.2
click==8.1.7
cloudpickle==3.0.0
colorama==0.4.6
comm==0.2.2
contourpy==1.2.1
cycler==0.12.1
dask==2024.5.1
dask-expr==1.1.1
dask-image==2024.5.3
debugpy==1.8.1
decorator==5.1.1
deeplabcut==2.3.9
dlclibrary==0.0.6
docstring_parser==0.16
docutils==0.17.1
exceptiongroup==1.2.1
executing==2.0.1
filelock==3.14.0
filterpy==1.4.5
flatbuffers==24.3.25
fonttools==4.52.4
freetype-py==2.4.0
fsspec==2024.5.0
gast==0.4.0
google-auth==2.29.0
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
grpcio==1.64.0
h5py==3.11.0
HeapDict==1.0.1
hsluv==5.0.4
huggingface-hub==0.23.2
idna==3.7
imageio==2.34.1
imageio-ffmpeg==0.4.9
imagesize==1.4.1
imgaug==0.4.0
importlib_metadata==7.1.0
in-n-out==0.2.1
ipykernel==6.29.4
ipython==8.24.0
jedi==0.19.1
Jinja2==3.1.4
joblib==1.4.2
jsonschema==4.22.0
jsonschema-specifications==2023.12.1
jupyter_client==8.6.2
jupyter_core==5.7.2
keras==2.10.0
Keras-Preprocessing==1.1.2
kiwisolver==1.4.5
lazy_loader==0.4
libclang==18.1.1
llvmlite==0.42.0
locket==1.0.0
magicgui==0.8.2
Markdown==3.6
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.9.0
matplotlib-inline==0.1.7
mdurl==0.1.2
msgpack==1.0.8
msgpack-numpy==0.4.8
napari==0.4.18
napari-console==0.0.9
napari-deeplabcut==0.2.1.6
napari-plugin-engine==0.2.0
napari-svg==0.1.10
natsort==8.4.0
ndindex==1.8
nest-asyncio==1.6.0
networkx==3.3
npe2==0.7.5
numba==0.59.1
numexpr==2.10.0
numpy==1.26.4
numpydoc==1.5.0
oauthlib==3.2.2
opencv-python==4.9.0.80
opencv-python-headless==4.9.0.80
opt-einsum==3.3.0
packaging==24.0
pandas==2.2.2
parso==0.8.4
partd==1.4.2
patsy==0.5.6
pillow==10.3.0
PIMS==0.6.1
Pint==0.23
platformdirs==4.2.2
pooch==1.8.1
prompt_toolkit==3.0.45
protobuf==3.19.6
psutil==5.9.8
psygnal==0.11.1
pure-eval==0.2.2
py-cpuinfo==9.0.0
pyarrow==16.1.0
pyasn1==0.6.0
pyasn1_modules==0.4.0
pyconify==0.1.6
pydantic==1.10.15
pydantic-compat==0.1.2
Pygments==2.18.0
PyOpenGL==3.1.7
pyparsing==3.1.2
pyproject_hooks==1.1.0
PySide6==6.3.1
PySide6-Addons==6.3.1
PySide6-Essentials==6.3.1
python-dateutil==2.9.0.post0
pytz==2024.1
pywin32==306
PyYAML==6.0.1
pyzmq==26.0.3
QDarkStyle==3.1
qtconsole==5.5.2
QtPy==2.4.1
referencing==0.35.1
requests==2.32.2
requests-oauthlib==2.0.0
rich==13.7.1
rpds-py==0.18.1
rsa==4.9
ruamel.yaml==0.18.6
ruamel.yaml.clib==0.2.8
scikit-image==0.23.2
scikit-learn==1.5.0
scipy==1.13.1
shapely==2.0.4
shellingham==1.5.4
shiboken6==6.3.1
six==1.16.0
slicerator==1.1.0
snowballstemmer==2.2.0
Sphinx==4.5.0
sphinxcontrib-applehelp==1.0.8
sphinxcontrib-devhelp==1.0.6
sphinxcontrib-htmlhelp==2.0.5
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.7
sphinxcontrib-serializinghtml==1.1.10
stack-data==0.6.3
statsmodels==0.14.2
superqt==0.6.6
tables==3.9.2
tabulate==0.9.0
tensorboard==2.10.1
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow==2.10.0
tensorflow-estimator==2.10.0
tensorflow-io-gcs-filesystem==0.31.0
tensorpack==0.11
termcolor==2.4.0
tf-slim==1.1.0
threadpoolctl==3.5.0
tifffile==2024.5.22
tomli==2.0.1
tomli_w==1.0.0
toolz==0.12.1
torch==1.12.0
tornado==6.4
tqdm==4.66.4
traitlets==5.14.3
typer==0.12.3
typing_extensions==4.12.0
tzdata==2024.1
urllib3==2.2.1
vispy==0.12.2
wcwidth==0.2.13
Werkzeug==3.0.3
wrapt==1.16.0
zipp==3.19.0

Relevant log output

No response

Anything else?

No response

Code of Conduct

Metadata

Metadata

Labels

GUIissues relating to GUI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions