Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Milestone
Description
I was running a test with some new images and plotting, code called cm.to_rgba() to convert the files for keras processing.
Matplotlib 2.1.2 (but verified in the current repository)
It 'works' however it throws an error, by mistake due to this error in code:
if xx.dtype.kind == 'f': if norm and xx.max() > 1 or xx.min() < 0: raise ValueError("Floating point image RGB values " "must be in the 0..1 range.")
If xx.min() <0 then this code piece triggers.
Should be:
if xx.dtype.kind == 'f': if norm and (xx.max() > 1 or xx.min() < 0): raise ValueError("Floating point image RGB values " "must be in the 0..1 range.")
Sorry.. not familiar enough with making pull requests and changes myself to do this!
Metadata
Metadata
Assignees
Labels
No labels