You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run the following cell in the the Colaboratory notebook to project an input image to latent space :
#Project your own image and Make Eigenvector of latent spaces (by pretrained model)
!python projector.py --ckpt=/content/Cartoon-StyleGan2/networks/ffhq256.pt --factor='networks/factor' --e_ckpt=/content/Cartoon-StyleGan2/networks/encoder_ffhq.pt \
--files=/content/Cartoon-StyleGan2/celea.jpg
I get the following error:
ImportError: cannot import name 'compare_ssim' from 'skimage.measure' (/usr/local/lib/python3.7/dist-packages/skimage/measure/init.py)
This seems to be because /usr/local/lib/python3.7/dist-packages/skimage/measure/__init__.py uses 'skimage.measure.compare_ssim' when it was recently changed to 'skimage.metrics.structural_similarity'
Thanks for providing this code!
When trying to run the following cell in the the Colaboratory notebook to project an input image to latent space :
I get the following error:
ImportError: cannot import name 'compare_ssim' from 'skimage.measure' (/usr/local/lib/python3.7/dist-packages/skimage/measure/init.py)
This seems to be because
/usr/local/lib/python3.7/dist-packages/skimage/measure/__init__.py
uses 'skimage.measure.compare_ssim' when it was recently changed to 'skimage.metrics.structural_similarity'Link talking about skimage update: williamfzc/stagesepx#150
The text was updated successfully, but these errors were encountered: