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

AttributeError: module 'lpips' has no attribute 'LPIPS' #81

Closed
zhangyahu1 opened this issue Oct 4, 2021 · 3 comments
Closed

AttributeError: module 'lpips' has no attribute 'LPIPS' #81

zhangyahu1 opened this issue Oct 4, 2021 · 3 comments

Comments

@zhangyahu1
Copy link

Hi,

I try to calculate the lipis for two images, and run:

import lpips
import torch
loss_fn_alex = lpips.LPIPS(model='net-lin', net='alex', use_gpu=use_gpu)

It raises the error:

AttributeError: module 'lpips' has no attribute 'LPIPS'

@ssumin6
Copy link

ssumin6 commented Oct 31, 2021

How do you solve this problem?

@outfielder
Copy link

outfielder commented May 2, 2022

I am getting the same problem. Did you manage to solve it?

@Mr-HF
Copy link

Mr-HF commented Dec 29, 2022

the promblme have who solved? i meet the promblem too

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

4 participants