fix for windows (thanks to chrothenbach)
This commit is contained in:
@ -12,6 +12,7 @@ model = sys.argv[1]
|
|||||||
subdir = os.path.join('models', model)
|
subdir = os.path.join('models', model)
|
||||||
if not os.path.exists(subdir):
|
if not os.path.exists(subdir):
|
||||||
os.makedirs(subdir)
|
os.makedirs(subdir)
|
||||||
|
subdir = subdir.replace('\\','/') # needed for Windows
|
||||||
|
|
||||||
for filename in ['checkpoint','encoder.json','hparams.json','model.ckpt.data-00000-of-00001', 'model.ckpt.index', 'model.ckpt.meta', 'vocab.bpe']:
|
for filename in ['checkpoint','encoder.json','hparams.json','model.ckpt.data-00000-of-00001', 'model.ckpt.index', 'model.ckpt.meta', 'vocab.bpe']:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user