Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSIM and MS-SSIM sometimes generate negative values. #36

Closed
li-zhi opened this issue Oct 14, 2016 · 2 comments
Closed

SSIM and MS-SSIM sometimes generate negative values. #36

li-zhi opened this issue Oct 14, 2016 · 2 comments

Comments

@li-zhi
Copy link
Contributor

li-zhi commented Oct 14, 2016

zli@zhi-ubuntu14-vm:~/Projects/stash/MCE/transcoder/vmaf_oss/vmaf/feature$ ./ssim yuv420p /home/zli/Desktop/debug_ssim/AttackOnTitan_1026_2.yuv /home/zli/Desktop/debug_ssim/AttackOnTitan_5v_1026_2.yuv 1920 1080
ssim: 0 -0.016983
ssim_l: 0 -0.046559
ssim_c: 0 0.665225
ssim_s: 0 0.508533
ssim: 1 -0.018055
ssim_l: 1 -0.046968
ssim_c: 1 0.664024
ssim_s: 1 0.508169

@yuhjay
Copy link
Contributor

yuhjay commented Oct 14, 2016

I think this is related to the c1 and c2 constants in the model. they are created to avoid divided by zero. However, these values only happens to corner case. (very special videos created by purpose). I am not sure why animation cause such problem.

@li-zhi
Copy link
Contributor Author

li-zhi commented Oct 14, 2016

@yuhjay We've found the root cause and is working on a solution.

li-zhi added a commit that referenced this issue Oct 14, 2016
* Reverse OPT_RANGE_PIXEL_OFFSET back to 0.

* Fix offset for SSIM and MS-SSIM; fix test cases.

* Increment SSIM and MS-SSIM feature extractor version number.

* Update VERSION and CHANGELOG.
@li-zhi li-zhi closed this as completed Oct 17, 2016
nilfm pushed a commit that referenced this issue Dec 8, 2022
Merge in MCE/vmaf-private-lts from feature/add-more-kernelscale-options-for-float-vif-christosb to master

* commit 'd3d56e2c6f45ff2851e4ca238d86ea9fafbce13e':
  Add more options for vif_kernelscale in float_vif.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants