You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While training an Inception Model with a mix of color and greyscale images I've noticed that some of the greyscale images were loosing most of the details when loading them with flow_from_directory.
The cause is the RGB conversion from Pillow used in load_img as described in this issue Pillow-2574
In my case the suggested workaround fixed the conversion.
This is the code I've used to handle the RGB conversion:
Hello,
I have similar issue, I'm using mode 'I' too, however my images are saved as uint16 so scaling by 256 losses too much info. I noticed the numpy array can be a float32...has anyone tried to normalize to 16k?
Also, I'm not super familiar with Python and my understanding is you can't overload classes...so where did you make your changes? Did you make changes to the keras modules in your site-packages dir or is there some other way to make these changes without modifying the downloaded code?
While training an Inception Model with a mix of color and greyscale images I've noticed that some of the greyscale images were loosing most of the details when loading them with
flow_from_directory
.The cause is the RGB conversion from Pillow used in
load_img
as described in this issue Pillow-2574In my case the suggested workaround fixed the conversion.
This is the code I've used to handle the RGB conversion:
The text was updated successfully, but these errors were encountered: