daitao / SAN

Second-order Attention Network for Single Image Super-resolution (CVPR-2019)
554 stars 106 forks source link

ZeroDivisionError: division by zero #46

Closed choieq closed 4 years ago

choieq commented 4 years ago

When i run the code to test, got the this error.

./SAN/TestCode/code/trainer.py, line 113 in test

self.ckp.log[-1, idx_scale] = eval_acc / len(self.loader_test) ZeroDivisionError: division by zero.

I have no idea why len(self.loader_test) is zero.

How can i fix this error?

fehimebetul commented 1 year ago

How to solve this error?Can you share the solution?