hzy46 / Char-RNN-TensorFlow

Multi-language Char RNN for TensorFlow >= 1.2.
938 stars 424 forks source link

【求问,急】报错找不到data/**.txt文件路径 #18

Open pikozizi opened 5 years ago

pikozizi commented 5 years ago

如题,报错找不到data/**.txt文件路径,怎么解决

pikozizi commented 5 years ago

Traceback (most recent call last): File "/home/piko/venv/Char-RNN-TensorFlow-master/Char-RNN-TensorFlow-master/train.py", line 56, in tf.app.run() File "/home/piko/venv/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 40, in run _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "/home/piko/venv/lib/python3.6/site-packages/absl/app.py", line 299, in run _run_main(main, args) File "/home/piko/venv/lib/python3.6/site-packages/absl/app.py", line 250, in _run_main sys.exit(main(argv)) File "/home/piko/venv/Char-RNN-TensorFlow-master/Char-RNN-TensorFlow-master/train.py", line 29, in main with codecs.open(FLAGS.input_file, encoding='utf-8') as f: File "/home/piko/venv/lib/python3.6/codecs.py", line 897, in open file = builtins.open(filename, mode, buffering) FileNotFoundError: [Errno 2] No such file or directory: 'data/poetry.txt'