kerlomz/captcha_trainer

选择样本路径报错

Tsn-09 opened this issue · 0 comments

MacOS
Python 3.9

/Users/tian/MyGit/Nose_H5_Captcha
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/init.py", line 1892, in call
return self.func(*args)
File "/Users/tian/MyGit/captcha_trainer-1.0/app.py", line 124, in
self.parent, text='Browse', command=lambda: self.browse_dataset(DatasetType.Directory, RunMode.Trains)
File "/Users/tian/MyGit/captcha_trainer-1.0/app.py", line 1405, in browse_dataset
self.fetch_sample([filename])
File "/Users/tian/MyGit/captcha_trainer-1.0/app.py", line 1433, in fetch_sample
category_pram = self.closest_category(category)
File "/Users/tian/MyGit/captcha_trainer-1.0/app.py", line 1416, in closest_category
min_index = min(category_group.values())
ValueError: min() arg is an empty sequence