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:
parent
68a80fe979
commit
eb5efef844
2
demo.py
2
demo.py
|
@ -120,7 +120,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
""" vocab / character number configuration """
|
""" vocab / character number configuration """
|
||||||
if opt.sensitive:
|
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.benchmark = True
|
||||||
cudnn.deterministic = True
|
cudnn.deterministic = True
|
||||||
|
|
Loading…
Reference in New Issue