ECCV2022-RIFE icon indicating copy to clipboard operation
ECCV2022-RIFE copied to clipboard

PSNR ValueError: math domain error

Open NEFUJoeyChen opened this issue 2 years ago • 0 comments

https://github.com/megvii-research/ECCV2022-RIFE/blob/9e10b63db3e93c3ba02283260cee1f3a698c4b14/train.py#L113

Hello, when GT and PRED are too similar (mse<1e-10), an error will be reported, because too small MSE will lead to PSNR approaching infinity. It would be better to add an 'if' condition here. Usually, people do this when calculating PSNR.

NEFUJoeyChen avatar Jul 22 '22 13:07 NEFUJoeyChen