Skip to content

Commit 8637828

Browse files
committed
fix for windows (thanks to chrothenbach)
1 parent 79a246a commit 8637828

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

download_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
subdir = os.path.join('models', model)
1313
if not os.path.exists(subdir):
1414
os.makedirs(subdir)
15+
subdir = subdir.replace('\\','/') # needed for Windows
1516

1617
for filename in ['checkpoint','encoder.json','hparams.json','model.ckpt.data-00000-of-00001', 'model.ckpt.index', 'model.ckpt.meta', 'vocab.bpe']:
1718

0 commit comments

Comments
 (0)