VainF/pytorch-msssim
Fast and differentiable MS-SSIM and SSIM for pytorch. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2694
- days_rel: n/a
- days_push: 904
- n_releases_24m: 0
Adoption not part of the score
1253 stars · 127 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PyTorch library providing fast, differentiable SSIM and MS-SSIM image quality metrics using separable Gaussian filtering for speed. It can be used both as an evaluation metric and as a differentiable loss function for training neural networks.
Use cases
- compute SSIM between image batches in pytorch
- use MS-SSIM as a differentiable loss for image reconstruction training
- evaluate image quality of generated images against ground truth
- match SSIM results from tensorflow or skimage in pytorch
- speed up SSIM computation with separable Gaussian kernels
- compute SSIM on 3D volumetric images
When to choose
- you need differentiable SSIM/MS-SSIM losses inside PyTorch training loops
- you want fast GPU-accelerated SSIM computation on batches of images
- you need results consistent with TensorFlow or skimage implementations
When to avoid
- you need image quality metrics outside the PyTorch ecosystem
- you need other perceptual metrics like LPIPS or PSNR beyond SSIM
- your project uses TensorFlow, JAX, or NumPy instead of PyTorch
Facets
library · maturity stable
image-processing machine-learning benchmarking computer-vision image-processing machine-learning deep-learning python cross-platform ssim ms-ssim pytorch image-quality differentiable-loss perceptual-metrics gpu
2 sources
- readme: https://github.com/VainF/pytorch-msssim · fetched 2026-08-28 · 3ee929fc044c
- registry_pypi: https://pypi.org/pypi/pytorch-msssim/json · fetched 2026-08-29 · 1547192a87ce
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| VainF/pytorch-msssim | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="VainF/pytorch-msssim")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem