-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
I get wierd outputs! #60
Comments
Are they the same config that you set? e.g., if you set |
I'm just using pretrained model "stylegan3-r-afhqv2-512x512" and try to generate images using the following command: python gen_images.py --outdir=out --trunc=1 --seeds=2 --network=https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r-afhqv2-512x512.pkl By the way, I don't see any config option in gen_images.py |
Ah I see, I misread, thought you were training your own model (as the outputs are exceedingly similar to the outputs of a new network). Could you try forcing fp32? #59 also had similar outputs to you, so this might be useful. |
Thanks Diego, I don't know why but it works with forcing FP32! |
I wonder if it is related to this:
Although that quote is in the context of training, what we are seeing here may be an outcome of these 'numerical issues'. From the readme:
gen_images.py has this in the code:
My python skills are a pretty janky, however it seems to me that the gen_images.py script doesn't specify to force_fp32 for the synthesis, whilst loading the model is defaulted to not using fp16:
My guess is that when using the gen_images.py script, G.synthesis fails to be informed to set 'force_fp32=True', I'm unsure what (or if) the default is for force_fp32 for G.synthesis, I'm guessing it is 'False'? |
I was able to address the problem in
|
Thank you very much. It works for me!! |
Using some available pre-trained models, I get wierd output images like these:
s
What could be the reason?.
The text was updated successfully, but these errors were encountered: