#229 · Primary category: Computer Vision

PerceptualSimilarity

deep-learning deep-neural-networks perceptual perceptual-losses perceptual-metric perceptual-similarity pytorch

LPIPS metric. pip install lpips

Project last updated:07/02/24

GitHub Stars

4.3K

Forks

523

Contributors

9

License

BSD-2-Clause

Why we included this project

LPIPS scores how alike two images look to a person by comparing deep feature maps, which usually tracks human judgment far better than pixel-level metrics like PSNR or SSIM. That makes it a common choice for anyone training or evaluating image generation, super-resolution, or restoration models, since you can backpropagate through it as a perceptual loss. Setup is a single pip install and the call itself is just a distance between two normalized tensors, with pretrained AlexNet, VGG, or SqueezeNet networks doing the heavy lifting. The repo also ships the BAPPS dataset, handy when you want to verify that some other similarity metric actually agrees with human perception.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category