Skip to content

unable to run predictions #1344

Answered by roomrys
mhochst asked this question in Help!
Jun 8, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @mhochst,

Thanks for the messages! The error:

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

looks similar to #922:

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. 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.

The more concerning this would…

Replies: 2 comments 3 replies

Comment options

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

Comment options

You must be logged in to vote
2 replies
@mhochst
Comment options

@mhochst
Comment options

Answer selected by mhochst
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