TensorFlow-2.x-Tutorials
TensorFlow-2.x-Tutorials copied to clipboard
13-DCGCN error
Hello,
I get the following error for 13-DCGAN program:
(base)@blackhole:$ python main.py
Traceback (most recent call last):
File "main.py", line 5, in
I ran into the same issue, and here is my solution.
toimage is deprecated in scipy since 1.0 and removed in 1.2. You have two options here:
- Rollback scipy to version <=1.1. Just need to tolerate some warning messages.
- Use PIL Image object instead: from PIL import Image ... # replace toimage call im = Image.fromarray(final_image) im.save(image_path) ...