Hi,
There is a problem: Re-train with --ckpt directly, the running command is
python -m nmt.nmt --ckpt directly ?
Run the above command terminal error message as follows:
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/zyp/NMT/nmt2/nmt/nmt.py", line 605, in
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 124, in run
_sys.exit(main(argv))
File "/home/zyp/NMT/nmt2/nmt/nmt.py", line 598, in main
run_main(FLAGS, default_hparams, train_fn, inference_fn)
File "/home/zyp/NMT/nmt2/nmt/nmt.py", line 558, in run_main
if not tf.gfile.Exists(out_dir): tf.gfile.MakeDirs(out_dir)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/lib/io/file_io.py", line 253, in file_exists
pywrap_tensorflow.FileExists(compat.as_bytes(filename), status)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/util/compat.py", line 65, in as_bytes
(bytes_or_text,))
TypeError: Expected binary or unicode string, got None
Looking forward to your advice or answers.
Best regards,
Thank you very much!
Hi, There is a problem: Re-train with --ckpt directly, the running command is python -m nmt.nmt --ckpt directly ?
Run the above command terminal error message as follows: Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "main", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/zyp/NMT/nmt2/nmt/nmt.py", line 605, in
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 124, in run
_sys.exit(main(argv))
File "/home/zyp/NMT/nmt2/nmt/nmt.py", line 598, in main
run_main(FLAGS, default_hparams, train_fn, inference_fn)
File "/home/zyp/NMT/nmt2/nmt/nmt.py", line 558, in run_main
if not tf.gfile.Exists(out_dir): tf.gfile.MakeDirs(out_dir)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/lib/io/file_io.py", line 253, in file_exists
pywrap_tensorflow.FileExists(compat.as_bytes(filename), status)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/util/compat.py", line 65, in as_bytes
(bytes_or_text,))
TypeError: Expected binary or unicode string, got None
Looking forward to your advice or answers.
Best regards,
Thank you very much!