Skip to content

Error when running sleap-train: tensorflow.python.framework.errors_impl.InvalidArgumentError #922

Answered by roomrys
cosimogonnelli asked this question in Help!
Discussion options

You must be logged in to vote

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:

tensorflow.python.framework.errors_impl.InvalidArgumentError: Shape of tensor EagerPyFunc [480,720,1] is not compatible with expected shape [480,720,3].

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cosimogonnelli
Comment options

Answer selected by roomrys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
2 participants