You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello - we downloaded/updated to the newest version of deeplabcut and keep getting this error "'>' not supported between instances of 'Tensor' and 'NoneType'" that we didnt get before/don't get with a back-up of our older deeplabcut version. We are running into this issue whenever we try to train a new model or run a model on new videos.
Thanks for the report; would you be able to share the relevant traceback from the terminal?
There are several such comparisons in the code and knowing which file and line is raising this would be very helpful.
If you have time, it would also be helpful to share:
Which previous version does work for you
Whether it is the same traceback between training and analysis
Your pytorch_config.yaml for this training run (in <project_path>/dlc-models-pytorch/iteration-<N>/<Task><date>-trainset<XX>shuffle<S>/train/pytorch_config.yaml)
The previous version which worked for us was v.3.0.0rc10, though now we get a "missing matplotlib" error when trying to use the old version on our backup conda environment before we updated to the newer release.
It is the same error whether we are doing training or analysis.
Activity
C-Achard commentedon Sep 11, 2026
Hello @bryantkg,
Thanks for the report; would you be able to share the relevant traceback from the terminal?
There are several such comparisons in the code and knowing which file and line is raising this would be very helpful.
If you have time, it would also be helpful to share:
pytorch_config.yamlfor this training run (in<project_path>/dlc-models-pytorch/iteration-<N>/<Task><date>-trainset<XX>shuffle<S>/train/pytorch_config.yaml)Thanks and best,
Cyril
bryantkg commentedon Sep 11, 2026
The previous version which worked for us was v.3.0.0rc10, though now we get a "missing matplotlib" error when trying to use the old version on our backup conda environment before we updated to the newer release.
It is the same error whether we are doing training or analysis.
pytorch_config.yaml
Thanks!
C-Achard commentedon Sep 14, 2026
Note: I suspect this was flagged and fixed in #3470 already, confirming first
C-Achard commentedon Sep 14, 2026
Thanks for sharing the error @bryantkg!
C-Achard commentedon Sep 14, 2026
Okay, I can confirm this was fixed in #3470 and #3475, which will be shipped in the upcoming 3.0.2.
In the meantime, there's a workaround for this: add the following to your pytorch config YAML
This should immediately resolve the error, just two things to know:
create_training_datasetwill drop the editdetector.modelLet me know if you have any questions.
Best,
Cyril
bryantkg commentedon Sep 14, 2026
Its now working as expected with this fix - we'll be sure to update to 3.0.2 when it releases. Thank you!!
C-Achard commentedon Sep 15, 2026
(Leaving open until release so others can find the workaround)
Thanks again @bryantkg! Please let us know if you encounter any other problems.