You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
My python version is 3.6.1, and tf version is 1.2.1.
I've gotten an error when I ran inference:
cat > /tmp/my_infer_file.vi
# (copy and paste some sentences from /tmp/nmt_data/tst2013.vi)
python -m nmt.nmt \
--model_dir=/tmp/nmt_model \
--inference_input_file=/tmp/my_infer_file.vi \
--inference_output_file=/tmp/nmt_model/output_infer
cat /tmp/nmt_model/output_infer # To view the inference as output
The error message is here:
Traceback (most recent call last):
File "/home_path/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home_path/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home_path/Documents/char-rnn/nmt-master/nmt/nmt.py", line 478, in <module>
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "/home/openmind/.pyenv/versions/3.6.1/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "/home_path/Documents/char-rnn/nmt-master/nmt/nmt.py", line 438, in main
if not tf.gfile.Exists(out_dir): tf.gfile.MakeDirs(out_dir)
File "/home_path/.pyenv/versions/3.6.1/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 252, in file_exists
pywrap_tensorflow.FileExists(compat.as_bytes(filename), status)
File "/home_path/.pyenv/versions/3.6.1/lib/python3.6/site-packages/tensorflow/python/util/compat.py", line 65, in as_bytes
(bytes_or_text,))
TypeError: Expected binary or unicode string, got None
Is there anyone who have faced the same issue?
The text was updated successfully, but these errors were encountered:
My python version is 3.6.1, and tf version is 1.2.1.
I've gotten an error when I ran inference:
The error message is here:
Is there anyone who have faced the same issue?
The text was updated successfully, but these errors were encountered: