Closed denproc closed 2 years ago
Multi Scale SSIM uses scaling weights to compute a score for image pair. The test 1 and test 2, which checks weight format, raises assertion error due to different purpose.
To Reproduce Steps to reproduce the behavior:
Run pytest tests/test_ms_ssim.py
pytest tests/test_ms_ssim.py
Observe no error
Open test/test_ms_ssim.py
test/test_ms_ssim.py
Move to line 78
See that AssetionError is raised due to missing x variable rather than wrong weight format.
x
Move to line 201
Suggestion
Multi Scale SSIM uses scaling weights to compute a score for image pair. The test 1 and test 2, which checks weight format, raises assertion error due to different purpose.
To Reproduce Steps to reproduce the behavior:
Run
pytest tests/test_ms_ssim.py
Observe no error
Open
test/test_ms_ssim.py
Move to line 78
See that AssetionError is raised due to missing
x
variable rather than wrong weight format.Move to line 201
See that AssetionError is raised due to missing
x
variable rather than wrong weight format.Suggestion