-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (3,2) and requested shape (2,2) #1435
Comments
Make sure the image isn't grayscale and convert to RGB it if it is (like in utils, load_image function) |
thanks,it worked for me |
I am facing the same issue, would you please give a little brief description.i could not get your point. I am using grayscale images. I shall be grateful. regards |
I got this error when I was using (what I found out was) a grayscale image. |
Thank you very much for the kind response |
hi, its my honer to meet the same question with you , but i have trouble in the test model, please help me , my qq is 510695983 |
operands could not be broadcast together with remapped shapes [original->remapped]: (3,2) and requested shape (2,2) |
my code is working when i pass it by gray scale it give the same error ---- operands could not be broadcast together with remapped shapes [original->remapped]: (3,2) and requested shape (2,2) |
grayscale 2 rgb worked for me... #custom_mrcnn |
Dear All, I'm facing this error. "ValueError: len(output_shape) cannot be smaller than the image dimensions" is there any solution for this? Please assist with this posting |
Thank you it worked for me but we should use syntax like this eg. |
Hy, I know this is already closed for some time and there might be some forks or repos in here that are more up to date. I'm currently working on a project explicitly analysing grayscale images, so I did not want to change grayscale to RGB. So the (3,2) that does not map to (2,2) is simply a nested padding list ( Therefore, my solution is to just reshape every incomming image (not mask) without changing values and image size, >>> image.shape
(512, 1024)
>>> image = image.reshape((*image.shape, 1))
>>> image.shape
(512, 1024, 1) By default this should be attached in the This worked for me without any problems. Maybe this helps someone who is still working with this.
|
Getting this error on some images, any ideas?
coming from:
molded_images, image_metas, windows = self.mold_inputs(images)
ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (3,2) and requested shape (2,2)
The text was updated successfully, but these errors were encountered: