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
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)
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
The text was updated successfully, but these errors were encountered: