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

Unrecognized arguments #94

Open
LGTiscar opened this issue May 7, 2021 · 2 comments
Open

Unrecognized arguments #94

LGTiscar opened this issue May 7, 2021 · 2 comments

Comments

@LGTiscar
Copy link

LGTiscar commented May 7, 2021

Hello! I have trained the ffqh1024 model with a custom mammograms dataset in Google Colab. My trained model .pkl file is ready on a drive folder and I want to generate images using that .pkl file. I tried:

!python generate.py --outdir='/content/drive/MyDrive/TFM/Generated' --trunc=1 --seeds=85,265,297,849 \ --network='/content/drive/MyDrive/TFM/colab-sg2-ada/stylegan2-ada/results/00025-ddsm-auto1-bg-resumecustom/network-snapshot-000096.pkl'

As recommended on the GitHub, but I get this error:

usage: generate.py [-h] {generate-images,truncation-traversal,generate-latent-walk,generate-neighbors,lerp-video} ... generate.py: error: unrecognized arguments: --outdir=/content/drive/MyDrive/TFM/Generated --trunc=1 --seeds=85,265,297,849 --network=/content/drive/MyDrive/TFM/colab-sg2-ada/stylegan2-ada/results/00025-ddsm-auto1-bg-resumecustom/network-snapshot-000096.pkl

Dont really know why generate.py doesnt recognize the arguments... I had to !pip install opensimplex in order to generate.py to run, don't know if it has something to do with the issue...

@BishwaBS
Copy link

BishwaBS commented Sep 9, 2021

@LGTiscar any luck with this? I am having the same issue!!

@BishwaBS
Copy link

BishwaBS commented Sep 9, 2021

If anybody is having this issue, here's the solution for this
!python generate.py generate-images --network="./results/model_folder/network-snapshot-000196.pkl" --seeds=85,265,297,849 --outdir="./generated_images1/"

Make sure you add generate-images into the argument line. Otherwise, it will keep on throwing unrecognized argument error. Sad that the documentation doesn't talk about this.

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

2 participants