Skip to content
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

when I test model on my data,happen one error #12

Open
dayu1979 opened this issue Sep 26, 2020 · 2 comments
Open

when I test model on my data,happen one error #12

dayu1979 opened this issue Sep 26, 2020 · 2 comments

Comments

@dayu1979
Copy link

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

@Michaelwhite34
Copy link

Michaelwhite34 commented Oct 8, 2020

I have the same error- -

@Etienne66
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants