sony / nnabla-examples

Neural Network Libraries https://nnabla.org/ - Examples
Apache License 2.0
306 stars 93 forks source link

Runtime errors in colab Stylegan2 #379

Closed wennycooper closed 1 year ago

wennycooper commented 1 year ago

I tried to run the colab of stylegan2 in https://colab.research.google.com/github/sony/nnabla-examples/blob/master/interactive-demos/stylegan2.ipynb But I got runtime error in nn.load_parameters("styleGAN2_G_params.h5")

螢幕擷取畫面 2023-05-06 145109

Is there any solution?

TomonobuTsujikawa commented 1 year ago

Sorry for taking some time.

I reproduced your issue, and I found Colab environment has old Pillow. So, could you please try this command?

!pip install -U Pillow

This will show the warning message, so you need to push RESTART RUNTIME button.

This Restarting will reset your current directory, so you need to execute following command again:

%cd nnabla-examples/image-generation/stylegan2

We will update Colab instruction or requirements for nnabla. I hope this instruction will help you.

wennycooper commented 1 year ago

Yes, it works. Thank you!