codeslake / IFAN

[CVPR 2021] Official PyTorch Implementation for "Iterative Filter Adaptive Network for Single Image Defocus Deblurring"
GNU Affero General Public License v3.0
222 stars 37 forks source link

ZeroDivisionError: division by zero #17

Closed wangzhupi closed 1 year ago

wangzhupi commented 1 year ago

when I run run.py this error happen , i have run this code step by step i have no idea with this problem ,can somebody help me plz, thx

Traceback (most recent call last): File "run.py", line 358, in <module> eval(config) File "/home/ubuntu01/Templates/IFAN1/IFAN/eval.py", line 197, in eval eval_quan_qual(config) File "/home/ubuntu01/Templates/IFAN1/IFAN/eval.py", line 182, in eval_quan_qual total_itr_time = total_itr_time / time_norm ZeroDivisionError: division by zero

codeslake commented 1 year ago

Hi, how did you setup your test images? Also, would your share your running script?

codeslake commented 1 year ago

Closing the issue. Please reopen this if you still have the problem.

wangzhupi commented 9 months ago

Closing the issue. Please reopen this if you still have the problem.

I have solved this problem, anywway thanks for your reply