carpedm20 / DCGAN-tensorflow

A tensorflow implementation of "Deep Convolutional Generative Adversarial Networks"
http://carpedm20.github.io/faces/
MIT License
7.16k stars 2.62k forks source link

Fix save img error and two function(center_crop and transform) #377

Open TsumugiWenders opened 4 years ago

TsumugiWenders commented 4 years ago

First,scipy.misc.imsave is nosupport scipy.misc,so using imageio.imwrite replacement can effectively avoid "one pic error!..." errors Second,function center_crop and transform will run an error, I fixed errors due to format and parameters. I am very happy to make my own contribution to this project, I hope you can adopt it, and good luck

KoapT commented 4 years ago

Why not use cv2 all the time to work with image array directly?

21PIRLO21 commented 4 years ago

Hi, scipy.misc.imsave seems to be working.