stylegan2-ada-pytorch
stylegan2-ada-pytorch copied to clipboard
Unable to generate single images after training with the notebook
Unable to generate single images after training with the notebook.
After training a model, the notebook is unable to generate image results. When the following command is run, the following error occurs- !python generate.py --outdir=/content/out/images/ --trunc=0.8 --seeds=0 --network=/content/drive/MyDrive/ladiescrop-network-snapshot-012885.pkl
generate.py:59: SyntaxWarning: "is not" with a literal. Did you mean "!="?
elif(len(seeds) is not 3):
Traceback (most recent call last):
File "generate.py", line 25, in
I'm having the same problem. It seems like an issue with the opensimplex import
So the issue is within the interpolation logic to generate video outputs (interpolating from seed to seed). opensimplex is used in the OSN() class that is used to predict noise in a noiseloop. If you comment all these out (along with the if else logic from generate_images(), it works. But you'll only be able to use interpolation=linear in generate.py.