You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: