Skip to content
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

Increase image resolution to 512x512? #5

Open
chadmeby opened this issue Dec 20, 2018 · 3 comments
Open

Increase image resolution to 512x512? #5

chadmeby opened this issue Dec 20, 2018 · 3 comments

Comments

@chadmeby
Copy link

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 -
@rahimnathwani
Copy link

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

@pskl
Copy link

pskl commented Dec 17, 2019

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

@GuillaumeTrain
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants