ganbreeder icon indicating copy to clipboard operation
ganbreeder copied to clipboard

Increase image resolution to 512x512?

Open chadmeby opened this issue 6 years ago • 3 comments

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] "[1m[35mPOST /children HTTP/1.1[0m" 500 -

chadmeby avatar Dec 20 '18 20:12 chadmeby

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

rahimnathwani avatar Apr 26 '19 09:04 rahimnathwani

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

pskl avatar Dec 17 '19 18:12 pskl

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

GuillaumeTrain avatar Jun 26 '22 17:06 GuillaumeTrain