Issue with the StyleGan optional lab

Hi there!

I’ve almost finished the StyleGan Fine tuning lab found here:

and hit an issue with pytorch loading the checkpoint downloaded from drive:

The interesting thing is is that wget managed to fetch the file down ok:

If needed, I can also install pytorch in my WSL2 environment and see if that changes anything here.

Let me know your thoughts.

Thanks!

Some of these stackoverflow references also seem like red herrings in this debug:

I’ve run into the same issue as @Bradley_M_Messer . Interesting no one from Coursera has noted this.

@Steven_Saito, thanks for the ping. It looks like this got overlooked earlier when @Bradley_M_Messer first posted it!

I just tried, though, and I’m not seeing the error Bradley mentioned. Instead, I am seeing a 403 error trying to download the anime-character-dataset.zip. If I ignore that, I can get down to the same cell the Bradley had a problem with, except I get past the line he had trouble with no problem. Instead, that cell fails when trying to access the anime dataset (as you’d expect, since I wasn’t able to load the dataset earlier).

Are you seeing the same error Bradley was seeing or the one I’m seeing?

Thanks @Wendy .

The error I am seeing is

---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-12-36238820b32e> in <module>()
     15 
     16 dataloader = torch.utils.data.DataLoader(
---> 17     Dataset('data/animeface-character-dataset/thumb', n_classes=n_classes),
     18     batch_size=16, pin_memory=True, shuffle=True, drop_last=True,
     19 )

1 frames
<ipython-input-2-e6a2a5230cb0> in load_examples_from_dir(self, abs_path)
     29         Given a folder of examples, this function returns a list of paired examples.
     30         '''
---> 31         assert os.path.isdir(abs_path)
     32 
     33         img_suffix = '.png'

AssertionError: 

And I did also have the error earlier in the notebook where there was an error downloading the anime-character-dataset.zip file.

Same as me. It did use to work, so that site must have started restricting access to their data or something. I’ll submit a report to the developers so they can fix the lab to get this data some other way.