Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shape must be rank $ but is rank 3 for 'model/MirrorPad' #74

Open
EhrazImam opened this issue Sep 14, 2021 · 3 comments
Open

Shape must be rank $ but is rank 3 for 'model/MirrorPad' #74

EhrazImam opened this issue Sep 14, 2021 · 3 comments

Comments

@EhrazImam
Copy link

I am using 2 IMX219 camera in Jetson Xavier NX when i am trying to run demo_model.py............ In grabber.py i have added my custom camera code tooo which i have already tried it and its working fine.... but i am getting error as you can see below...
WhatsApp Image 2021-09-14 at 9 19 57 PM

@AlessioTonioni
Copy link
Member

Try to add a dimension to the image tensor, each input frame should have shape [1, 480, 640, 3] in your case. You seem to be missing the 1 in the first dimension.

@EhrazImam
Copy link
Author

I have tried that too...
WhatsApp Image 2021-09-15 at 1 34 33 PM

@AlessioTonioni
Copy link
Member

The error is a different one now. You are feeding an image with shape 360 x 640 to a placeholder with shape 480 x 640. Either resize your image to the target shape or change the shape of the placeholder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants