Mask_rcnn: ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (3,2) and requested shape (2,2)

Created on 14 Apr 2019  路  9Comments  路  Source: matterport/Mask_RCNN

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)

Most helpful comment

Make sure the image isn't grayscale and convert to RGB it if it is (like in utils, load_image function)

All 9 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

Make sure the image isn't grayscale and convert to RGB it if it is (like in utils, load_image function)

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.
MaskRCNN doesn't work by default with grayscale and my model wasn't trained to work with grayscale so I needed to convert the image to RGB before inputing it for inference.

I got this error when I was using (what I found out was) a grayscale image.
MaskRCNN doesn't work by default with grayscale and my model wasn't trained to work with grayscale so I needed to convert the image to RGB before inputing it for inference.

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

Was this page helpful?
0 / 5 - 0 ratings