captcha_identify.pytorch icon indicating copy to clipboard operation
captcha_identify.pytorch copied to clipboard

运行报错

Open aboluo12138 opened this issue 3 months ago • 0 comments

直接运行后会弹以下报错 ValueError: num_samples should be a positive integer value, but got num_samples=0 我将captcha_identify.pytorch-master\datasets.py 第47行的 return DataLoader(dataset, batch_size=1, shuffle=True) 的True改为False后弹出新的报错 报错信息:ZeroDivisionError: division by zero 似乎是test.py 中第78行的 return 100 * correct / total 引起的

aboluo12138 avatar Apr 11 '24 15:04 aboluo12138