-
Notifications
You must be signed in to change notification settings - Fork 10
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
Should images be normailzed to [-1, 1] or [0, 1]? #6
Comments
Hello, I am working for CVPR deadline, please wait for my answer. |
Same as well... Wish you good luck. |
the inital video input range [0-1]. FVD -> [0-1] to [0-255] common_metrics_on_video_quality/fvd/videogpt/fvd.py Lines 51 to 55 in c12e449
SSIM -> no trans [0-1] to [0-1] common_metrics_on_video_quality/calculate_ssim.py Lines 26 to 27 in c12e449
LPIPS -> [0-1] to [-1-1] common_metrics_on_video_quality/calculate_lpips.py Lines 15 to 36 in c12e449
PSNR -> no trans [0-1] to [0-1] common_metrics_on_video_quality/calculate_psnr.py Lines 6 to 8 in c12e449
How to normalize ? if you input is [0-255] you can video = video/255.0 and then calculate Wish you good luck too.
|
Hi, thanks for your codebase! In
calculate_lpips.py
, it saysimage should be RGB, IMPORTANT: normalized to [-1,1]
. https://github.com/JunyaoHu/common_metrics_on_video_quality/blob/c12e449540cf27c1b1412c8012ecc35413fda6a7/calculate_lpips.py#L26C59-L26C59 However, in the READMEnotice
section, it saysMake sure the pixel value of videos should be in [0, 1].
common_metrics_on_video_quality/README.md
Line 167 in c12e449
The text was updated successfully, but these errors were encountered: