Open L-KH opened 5 years ago
Downgrading Keras will solve this issue.
this issue is from colab in build the model part : https://colab.research.google.com/github/shaoanlu/faceswap-GAN/blob/master/colab_demo/faceswap-GAN_colab_demo.ipynb#scrollTo=yiNsc3N_2VhU
I met the same bug, just need to add from keras import regularizers
in the head of nn_blocks.py.
I'm trying to run the colab notebook and running into this bug. Access denied to nn_blocks.py. Any suggestions?
this issue is from colab in build the model part : https://colab.research.google.com/github/shaoanlu/faceswap-GAN/blob/master/colab_demo/faceswap-GAN_colab_demo.ipynb#scrollTo=yiNsc3N_2VhU
Did you find a solution to the issue in the colab notebook? Did "from keras import regularizers" in nn_blocks.py work?
Right now, i just don't know, what to do.
this issue is from colab in build the model part : https://colab.research.google.com/github/shaoanlu/faceswap-GAN/blob/master/colab_demo/faceswap-GAN_colab_demo.ipynb#scrollTo=yiNsc3N_2VhU
Did you find a solution to the issue in the colab notebook? Did "from keras import regularizers" in nn_blocks.py work?
Right now, i just don't know, what to do.
Yeah, I used that coda and it works
i have the same problem but the solution proposed not work..or i have to start all over again?(like import videos ecc?)
@L-KH @shaoanlu @ok-sweat @AlasdairWalker @Mario2712
NameError Traceback (most recent call last)
I still didn't solve the issue, even I add the "from keras import regularizers" in file networks/nn_blocks.py
As Shaoanlu mentioned, it can be fixed by downgrade the Keras version. Put it somewhere reasonable.
!pip install q keras==2.1.5
I'm not getting the regularizers error message anymore, putting that import in nn_blocks.py fixed it. However, I am now getting this error:
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-16-200e84530ca7> in <module>
5 train_AnB = train_A + train_B
6
----> 7 assert len(train_A), "No image found in " + str(img_dirA)
8 assert len(train_B), "No image found in " + str(img_dirB)
9 print ("Number of images in folder A: " + str(len(train_A)))
AssertionError: No image found in ./faceA
this worked for me
!pip install keras==2.1.3 !pip install h5py==2.10
//run ::: model = FaceswapGANModel(**arch_config)
NameError Traceback (most recent call last)