module 'metrics.LPIPS' has no attribute 'models'
See original GitHub issueHi,
Nice project!
I had to change line 15 in file ./codes/metrics/LPIPS/models/networks_basic.py from
import metrics.LPIPS.models as util
to
import models as util
to get it to run. But I am not a python guy so to speak, so perhaps I did it wrong. Hope this helps.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
lpips - PyPI
This repository contains our perceptual metric (LPIPS) and dataset (BAPPS). It can also be used as a "perceptual loss". This uses PyTorch; a...
Read more >Learned Perceptual Image Patch Similarity (LPIPS)
A low LPIPS score means that image patches are perceptual similar. Both input image patches are expected to have shape [N, 3, H,...
Read more >AttributeError: module 'sklearn.metrics' has no attribute ...
I got an error: AttributeError: module 'sklearn.metrics' has no attribute 'calinski_harabaz_score'. This is the version I have:.
Read more >Issues · richzhang/PerceptualSimilarity · GitHub - rpkg.in
LPIPS metric. pip install lpips. ... AttributeError: module 'lpips' has no attribute 'normalize_tensor' ... Scaling factors are not frozen by default.
Read more >Generative Joint Source-Channel Coding for Semantic Image ...
traditional distortion metrics alone does not necessarily result in ... A single model trained with AF modules is shown by.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same problem under python 3.6.13. However, reinstalling a new python env is somehow a little complex. I think changing
import metrics.LPIPS.models as util
tofrom metrics.LPIPS import models as util
solves the problem.I can confirm that you need 3.7.4 for LPIPS to seem to work and a version of scikit-image >.18 due to a depreciation of measure.ssim to metrics.structural_similarity. also some of TensorFlow’s dependencies are still required to run, if someone opens anything up later with a bug.