We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaab70b commit a925d48Copy full SHA for a925d48
Tutorials/02_captcha_to_text/train.py
@@ -34,7 +34,7 @@ def download_and_unzip(url, extract_to='Datasets'):
34
captcha_path = os.path.join('Datasets', 'captcha_images_v2')
35
for file in os.listdir(captcha_path):
36
file_path = os.path.join(captcha_path, file)
37
- file_name = os.path.basename(file)
+ file_name = os.path.splitext(file)[0]
38
dataset.append([file_path, file_name])
39
vocab.update(list(file_name))
40
max_len = max(max_len, len(file_name))
0 commit comments