-
Notifications
You must be signed in to change notification settings - Fork 482
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
Bug using preserve color option #70
Comments
There's been some issue to get color preservation working once scipy stopped supporting imread and imsave. I'd suggest going down to a version which uses older scipy and perform colorization post training |
I encounter this too.Win10 tensorflow 2.3 and Keras 2.4.3 and all latest version required libraries. |
I know I'm late to the party, but to fix it you can update the def fromimage(img, mode="RGB"):
if mode == "RGB":
img = color.lab2rgb(img)
else:
img = color.rgb2lab(img)
return img to def fromimage(img, mode="RGB"):
return np.array(img.convert(mode)) as a bonus you don't need the |
Hi,
Thank you very much for this nice implementation.
I am using your code successfully on Windows 10 on an iMac and AMD GPU via Plaidml. However, using the preserve color option I get a noise-like Image output with a diagonal stripe pattern. This also happens with the example images that you provide and show on your GitHub page (the Buddhist temple with water lillies style. Without the preserve color option everything works fine.
Any suggestion what might be going wrong?
Many thanks in advance!
The text was updated successfully, but these errors were encountered: