Closed gmongaras closed 2 years ago
I also found some other issues with the same notebook:
torch.load()
fixed the issue:
map_location=torch.device(device)
@torch.no_grad
should be changed to @torch.no_grad()
Thank you for providing some of these great resources to help learn more about GANs! I'm hoping these issues can be resolved to help others running into the same issues.
Hi, Thanks a lot for your valuable feedback. I will forward this to the team. Sorry for the inconvenience! We will try to investigate and solve this problem. Thank you.
In the 'Checkpoint' part of the notebook, a model named 'stylegan-256px.pt' is supposed to be downloaded from a google drive link. If you examine the contents of the downloaded file, the contents are HTML code. Within this HTML code, you can find a link to download the actual model, but if you don't download the actual model, issues will arise later in the code. For me, I had an issue stating "invalid load key, '<'." when running the code under the "Fine-tuning StyleGAN on Anime Faces" header before I realized the model was an HTML file instead of a model.