Tensorflow download_and_convert_mnist_m.py 没有这样的文件或目录:'~/dsn_data/mnist_m/mnist_m_train'
Tensorflow download_and_convert_mnist_m.py No such file or directory: '~/dsn_data/mnist_m/mnist_m_train'
我在使用来自 github https://github.com/tensorflow/models/tree/master/research/domain_adaptation/datasets 的 download_and_convert_mnist_m.py 脚本时收到一条奇怪的错误消息。
我在 models/research/ 文件夹中使用的命令是
python domain_adaptation/datasets/download_and_convert_mnist_m.py --dataset_dir=~/dsn_data/
错误信息是
Traceback (most recent call last):
File "domain_adaptation/datasets/download_and_convert_mnist_m.py", line 237, in <module>
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "domain_adaptation/datasets/download_and_convert_mnist_m.py", line 233, in main
run(FLAGS.dataset_dir)
File "domain_adaptation/datasets/download_and_convert_mnist_m.py", line 201, in run
os.path.join(dataset_dir, 'mnist_m', 'mnist_m_train'))
File "domain_adaptation/datasets/download_and_convert_mnist_m.py", line 177, in _get_filenames
for filename in os.listdir(dataset_dir):
OSError: [Errno 2] No such file or directory: '~/dsn_data/mnist_m/mnist_m_train'
我尝试了几种方法:
- 之前没有创建路径,之前没有数据
- 创建之前的路径并让它为空
- 从https://drive.google.com/drive/folders/0B_tExHiYS-0vR2dNZEU4NGlSSW8 at the specified path as described here https://github.com/tensorflow/models/tree/master/research/domain_adaptation
下载并解压数据
我用
- Ubuntu16.04
- Python2.7
- 张量流 1.4.1
我还能做什么..看起来像一个非常简单的错误,但我没有更多的想法。
我解决了。正确的命令没有等号。
python domain_adaptation/datasets/download_and_convert_mnist_m.py --dataset_dir=~/dsn_data/
我在使用来自 github https://github.com/tensorflow/models/tree/master/research/domain_adaptation/datasets 的 download_and_convert_mnist_m.py 脚本时收到一条奇怪的错误消息。
我在 models/research/ 文件夹中使用的命令是
python domain_adaptation/datasets/download_and_convert_mnist_m.py --dataset_dir=~/dsn_data/
错误信息是
Traceback (most recent call last):
File "domain_adaptation/datasets/download_and_convert_mnist_m.py", line 237, in <module>
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "domain_adaptation/datasets/download_and_convert_mnist_m.py", line 233, in main
run(FLAGS.dataset_dir)
File "domain_adaptation/datasets/download_and_convert_mnist_m.py", line 201, in run
os.path.join(dataset_dir, 'mnist_m', 'mnist_m_train'))
File "domain_adaptation/datasets/download_and_convert_mnist_m.py", line 177, in _get_filenames
for filename in os.listdir(dataset_dir):
OSError: [Errno 2] No such file or directory: '~/dsn_data/mnist_m/mnist_m_train'
我尝试了几种方法:
- 之前没有创建路径,之前没有数据
- 创建之前的路径并让它为空
- 从https://drive.google.com/drive/folders/0B_tExHiYS-0vR2dNZEU4NGlSSW8 at the specified path as described here https://github.com/tensorflow/models/tree/master/research/domain_adaptation 下载并解压数据
我用
- Ubuntu16.04
- Python2.7
- 张量流 1.4.1
我还能做什么..看起来像一个非常简单的错误,但我没有更多的想法。
我解决了。正确的命令没有等号。
python domain_adaptation/datasets/download_and_convert_mnist_m.py --dataset_dir=~/dsn_data/