photosynthesis-team / piq

Measures and metrics for image2image tasks. PyTorch.
Apache License 2.0
1.32k stars 114 forks source link

Information Content Weighted Structural Similarity Index (IW-SSIM) #301

Closed denproc closed 2 years ago

denproc commented 2 years ago

With this pull request we introduce Information Content Weighted Structural Similarity. The measure has two interfaces as a function for metric and as class for loss function.

Closes #128, Replaces #201

Proposed Changes

codecov[bot] commented 2 years ago

Codecov Report

Merging #301 (a9e645e) into master (0c23870) will decrease coverage by 1.53%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #301      +/-   ##
==========================================
- Coverage   93.41%   91.87%   -1.54%     
==========================================
  Files          33       34       +1     
  Lines        2277     2486     +209     
==========================================
+ Hits         2127     2284     +157     
- Misses        150      202      +52     
Flag Coverage Δ
unittests 91.87% <100.00%> (-1.54%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
piq/__init__.py 100.00% <100.00%> (ø)
piq/functional/__init__.py 100.00% <100.00%> (ø)
piq/functional/filters.py 100.00% <100.00%> (ø)
piq/iw_ssim.py 100.00% <100.00%> (ø)
piq/ms_ssim.py 100.00% <100.00%> (ø)
piq/gs.py 32.96% <0.00%> (-57.15%) :arrow_down:
denproc commented 2 years ago

@snk4tr @zakajd , ready for review

denproc commented 2 years ago

Ready for another review :)

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication