From 86378284e119d09bd2b6e449d9bac52c9b821db7 Mon Sep 17 00:00:00 2001 From: Jeff Wu Date: Thu, 7 Mar 2019 11:26:58 -0800 Subject: [PATCH] fix for windows (thanks to chrothenbach) --- download_model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/download_model.py b/download_model.py index 2a3829431..30ba84ade 100644 --- a/download_model.py +++ b/download_model.py @@ -12,6 +12,7 @@ subdir = os.path.join('models', model) if not os.path.exists(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']: