I wanna to know how to calculate the results of PSNR/SSIM while evaluating? #1389
-
Branchmaster branch https://mmediting.readthedocs.io/en/latest/ 📚 The doc issueI wanna to know how to calculate the results of PSNR/SSIM while evaluating? Thanks sincerely for your reply Suggest a potential alternative/fixNo response |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Hey @TonJ24 , if you want to calculate the mean of all clips, you can directly use evaluation = dict(interval=5000, save_image=False, gpu_collect=True)
test_cfg = dict(metrics=['PSNR', 'SSIM'], crop_border=0, convert_to='y') If you want to evaluate the specific number of clips, perhaps you need to modify the |
Beta Was this translation helpful? Give feedback.
-
Thank you for your elaborate reply. However, it is a challenge for me to find the default number of evalution clips.Can you tell me what's the number of evalution clips on Vimeo-90K-T as default? |
Beta Was this translation helpful? Give feedback.
-
@TonJ24 Do you mean how to split the test and evaluation set? |
Beta Was this translation helpful? Give feedback.
-
For an example, I mean that when I leverage your pretrained parameter, your existing model and your default setup to evaluate on Vimeo-90K-T,the PSNR/SSIM=40.0/0.8900. And I wanna to know whether this average result calculated from all (7824*7) pictures. |
Beta Was this translation helpful? Give feedback.
-
No, they are calculated only on the center frame. That means, the 4th frame. |
Beta Was this translation helpful? Give feedback.
-
Thanks very much for your elaborate reply. I assume that calculating the average PSNR/SSIM on (7824*7) is a normal idea. Do you know why this framework just obtain final result from center frame? |
Beta Was this translation helpful? Give feedback.
-
Since earlier methods fall into the sliding-window framework. Specifically, they use 7 frames to produce the center frame. Therefore, they can only get the 4th frame given a 7-frame sequence. For others, padding is needed and therefore they do not consider them. |
Beta Was this translation helpful? Give feedback.
-
Get! Thank you very much! |
Beta Was this translation helpful? Give feedback.
Since earlier methods fall into the sliding-window framework. Specifically, they use 7 frames to produce the center frame. Therefore, they can only get the 4th frame given a 7-frame sequence. For others, padding is needed and therefore they do not consider them.