joel-simon / ganbreeder

Breed and share images using biggan
https://ganbreeder.app
GNU General Public License v3.0
1.28k stars 233 forks source link

Increase image resolution to 512x512? #5

Open chadmeby opened 5 years ago

chadmeby commented 5 years ago

Not at all understanding the internals, but tried replacing:

https://tfhub.dev/deepmind/biggan-256/2

with:

https://tfhub.dev/deepmind/biggan-512/2

on a local Windows10 install, I see this;

PS C:\Users\Chad\ganbreeder\gan_server> python .\server.py
Loading BigGAN module from: https://tfhub.dev/deepmind/biggan-512/2
2018-12-20 15:26:56.311724: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
port= 5000
 * Serving Flask app "server" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Restarting with stat
Loading BigGAN module from: https://tfhub.dev/deepmind/biggan-512/2
2018-12-20 15:27:09.644649: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
port= 5000
 * Debugger is active!
 * Debugger PIN: 113-412-377
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
children
Cannot feed value of shape (10, 140) for Tensor 'z:0', which has shape '(?, 128)'
127.0.0.1 - - [20/Dec/2018 15:27:46] "POST /children HTTP/1.1" 500 -
rahimnathwani commented 5 years ago

@chadmeby Can you post here the parameters of your POST request to /children?

pskl commented 4 years ago

I tried updating the pretrained network to the 512 version and it works like a charm on my side.

GuillaumeTrain commented 2 years ago

hi there! i tried to upscale too without success, please pskl can you provide some clue on what to do for ? i just changed the pretrained link (module path) and the sample cliping : ims = np.clip(((ims + 1) / 2.0) * 512, 0, 511) but after restarting , ganbreeder server has error code 500