Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my config stopped working - was there a breaking change for lpips_layers? #78

Closed
johndpope opened this issue Sep 13, 2021 · 0 comments
Closed

Comments

@johndpope
Copy link

in this codebase - we use this line

self.lpips_loss = LPIPS(net=hyperparameters.lpips_type, lpips_layers=hyperparameters.pt_lpips_layers).to(global_config.device).eval()

but now - lpips_layers is missing...

I reverted to use
pip install lpips==0.1.2
but this runs into another problem with skimage

Traceback (most recent call last):
File "scripts/notebook.py", line 16, in
from scripts.run_pti import run_PTI
File "/home/jp/Documents/gitWorkspace/PTI/scripts/run_pti.py", line 9, in
from training.coaches.multi_id_coach import MultiIDCoach
File "/home/jp/Documents/gitWorkspace/PTI/training/coaches/multi_id_coach.py", line 7, in
from training.coaches.base_coach import BaseCoach
File "/home/jp/Documents/gitWorkspace/PTI/training/coaches/base_coach.py", line 9, in
from lpips import LPIPS
File "/home/jp/miniconda3/envs/torch/lib/python3.8/site-packages/lpips/init.py", line 7, in
from skimage.measure import compare_ssim
ImportError: cannot import name 'compare_ssim' from 'skimage.measure' (/home/jp/miniconda3/envs/torch/lib/python3.8/site-packages/skimage/measure/init.py)

danielroich/PTI#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant