CDVD-TSP icon indicating copy to clipboard operation
CDVD-TSP copied to clipboard

when I test model on my data,happen one error

Open dayu1979 opened this issue 4 years ago • 2 comments

Loading model from ../pretrain_models/CDVD_TSP_DVD_Convergent.pt Traceback (most recent call last): File "inference.py", line 243, in Infer.infer() File "inference.py", line 123, in infer self.logger.write_log("# Total AVG-PSNR={:.5}, AVG-SSIM={:.4}".format(sum_psnr / n_img, sum_ssim / n_img)) ZeroDivisionError: float division by zero

dayu1979 avatar Sep 26 '20 09:09 dayu1979

I have the same error- -

Michaelwhite34 avatar Oct 08 '20 06:10 Michaelwhite34

I fixed this issue in my fork. Basically it is because you do not have any GT images. You can copy your blurry images to the GT folder. It just won't have a good PSNR calculated. My fix was not to calculate it if there were no GT images.

Etienne66 avatar May 22 '21 07:05 Etienne66