Error when running sleap-train: tensorflow.python.framework.errors_impl.InvalidArgumentError #922
-
Hi All, I imported a dataset from DLC. When I use sleap-train, I get the following error. I am running my code on Google Colab. Can anybody helping with this? Please let me know if you need more information. INFO:numexpr.utils:NumExpr defaulting to 4 threads. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @cosimogonnelli, Do you happen to have both color and grayscale videos in your project? While SLEAP should be able to handle training on mixed color/grayscale project, we have an open issue #759 on this at the moment. Your error log seems very similar, particularly this line:
The current workaround would be to open the GUI, check the number of channels for each video in the Video view, and use the "Toggle Grayscale" button to convert each video to have the same number of channels. Let us know if that solves the issue. Thanks, |
Beta Was this translation helpful? Give feedback.
Hi @cosimogonnelli,
Do you happen to have both color and grayscale videos in your project? While SLEAP should be able to handle training on mixed color/grayscale project, we have an open issue #759 on this at the moment. Your error log seems very similar, particularly this line:
The current workaround would be to open the GUI, check the number of channels for each video in the Video view, and use the "Toggle Grayscale" button to convert each video to have the same number of channels.
Let us know if that solves the issue.
Thanks,
Liezl