-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Check failed: l == 1 || r == 1 operands could not be broadcast together with shapes [416,416,4] [1,1,3] #1046
Comments
That's not expected. Can you share a sample of your dataset and annotations with us for us to be able to reproduce it? |
Sure, where can I securely send them to? |
I think it's something to do with the JPEG images. I converted them to PNG's and I did not get the error. Anything special with how JPEGs need to be created/compressed? Color profiles? |
Hello, I'm getting something similar to this using 5.0b3 I can package up my env and jupyter notebook to send over. Just let me know where to send it. From the command
|
@henrytkirk You can send your JPEGs that consistently repro this issue to the email address in my profile. We can investigate from there, thanks! |
@znation Can I send you my set? I've got a lot of images and it's been really hard trying to figure out which ones might be causing the issue. My zipped set is about 125MB so email won't work too well for that. |
@znation Apologies for the comment spam but I was able to get a smaller replication set and I have emailed it to you. Please let me know if there is more information you need. |
@henrytkirk @concertman ran into the same problem today. Converting the images from RGBA (4 channels) to RGB (3 channels) solved my issue. Hope this helps: #114 |
I stopped getting this bug when I downgraded by 2015 iMac to high Sierra. This bug must have something to do with the GPU support in Mojave. I hope this helps. |
@yousifKashef I was getting this on High Sierra as well so the Mojave thing might be a red herring. |
…o support conversion of 1-channel (Grayscale) and 4-channel (RGBA) images to 3-channel (RGB) images. Currently supported color spaces (and their conversions to RGB) are Grayscale, palette, RGB, and RGBA. PNG supports Grayscale, RGB and RGBA. JPEG supports Grayscale and RGB, along with additional colorspaces such as CMYK, YCCK, and YCbCr. LibJpeg does not support conversion of YCCK or CMYK to RGB. Since we expect image format to be a 3-channel RGB, I added an error check for the jpeg image to be in the RGB format. (Note: Conversion from CMYK to RGB can still happen using the resizing functionality but since it does so by dropping the K channel it seems wise to inform the user and have them feed the correct image without losing color information.)
Fixes #1046. Error was reproduced by a CMYK image. * Placed resizing functionality from image_analysis to support conversion of 1-channel (Grayscale) and 4-channel (RGBA) images to 3-channel (RGB) images. * Currently supported color spaces (and their conversions to RGB) are Grayscale, palette, RGB, and RGBA. * PNG supports Grayscale, RGB and RGBA. * JPEG supports Grayscale and RGB, along with additional colorspaces such as CMYK, YCCK, and YCbCr. LibJpeg does not support conversion of YCCK or CMYK to RGB. * We expect image format to be a 3-channel RGB. An error check was added for the jpeg image to be in the RGB format. * Unit test added to ensure CMYK images are unsupported and not mistaken as RGBA.
Hi,
I'm having the following issue when I run this command:
model = tc.object_detector.create(data, feature='image', annotations='annotations', max_iterations=5)
I have OSX Mojave Beta, MacBook Pro (Retina, 15-inch, Late 2013). Sometimes the processing works, sometimes not. Can you point me to what might be wrong? Did I install anything incorrectly? I'm using the mxnet v1.1.0 as mentioned in another post.
Thanks for the help.
The text was updated successfully, but these errors were encountered: