Update demo.py

string.printable[:,-38] will keep 0-9, then a-z and A-Z as our opt.character
This commit is contained in:
Gourav Chowdhary 2021-01-18 15:14:30 +05:30 committed by GitHub
parent 68a80fe979
commit eb5efef844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ if __name__ == '__main__':
""" vocab / character number configuration """
if opt.sensitive:
opt.character = string.printable[:-6] # same with ASTER setting (use 94 char).
opt.character = string.printable[:-38] # same with ASTER setting (use 94 char).
cudnn.benchmark = True
cudnn.deterministic = True