-
Notifications
You must be signed in to change notification settings - Fork 345
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
how to instantiate a model, load a checkpoint and visualize some generated images? #189
Comments
It seems like there is a problem with loading ckpts. Did you change the file name of the checkpoint? If so, please retry with original file name in huggingface as StudioGAN expects specific format of file name when loading. (i.e. "model=G-{when}-weights-step=") |
Hi @alex4727 thank you again very much. No, I didn't change anything. Is there any documentation that I can refer and read. I really want to work with this repo's awesom GAN collections. Have a great day joonghyuk. and thank for your help. |
Problem seems to be here.
Once you use os.chdir("PyTorch-StudioGAN") you should run codes inside the directory like below.
Besides, if you don't need metrics and just need to visualize generated images, use below command.
I've checked it on colab and it worked fine! Let me know if you have other issues. |
Hi @alex4727 thank you very very very much! I've got Thank you again so much. I'm happy that I've finally understood it :) with your help 👍 |
@coloedrainbow @alex4727 and for anyone interested in running it from the terminal, I have made this small bash script: How to execute:
Best, Nikolas |
Could you help with this please? I'm trying to run a DCGAN model form the StudioGAN repo and using the checkpoint at Hugging face. No matter what I try it shows different error. Can any one please show me how to instantiate one of the GAN model like DCGAN, WGAN,... and then load a checkpoints and just generate some data. No training whatsoever.
As my system is quite weak I need to run over Colab. Here's what I did:
I've downloaded checkpoints from Hugging face here for Cifar10-DCGAN. then made a folder "checkpoints" and uploaded this checkpoints. Also made a folder with name "results". Then:
Then cloned the repo
And then once I did
The tag
-t
is for training and-sf
is for saving figures I guess. So, it still shows an error! What's the issue and how can I fix it??And it give the error message of :
The text was updated successfully, but these errors were encountered: