[英]Zsh error when trying to run tensorflow model training script
I am trying to train a resnet model for CIFAR10 using the following repo in tensorflow: https://github.com/stanford-futuredata/dawn-bench-models/tree/master/tensorflow/CIFAR10/resnet . I am trying to train a resnet model for CIFAR10 using the following repo in tensorflow: https://github.com/stanford-futuredata/dawn-bench-models/tree/master/tensorflow/CIFAR10/resnet . Even though the readme mentions tensorflow 1.2, I got a
Could not find a version that satisfies the requirement tensorflow==1.2
when trying to install, so I am instead using tensorflow 1.15.尽管自述文件提到了 tensorflow 1.2,但在尝试安装时我得到了一个
Could not find a version that satisfies the requirement tensorflow==1.2
,所以我改用 tensorflow 1.15。 I am also using Python 3.7.6 and running on a Mac.我也在使用 Python 3.7.6 并在 Mac 上运行。 When I try to run the training script
resnet_main.py
:当我尝试运行训练脚本
resnet_main.py
:
python3 resnet/resnet_main.py --train_data_path=cifar10/data_batch* \
--log_root=/tmp/resnet_model \
--train_dir=/tmp/resnet_model/train \
--dataset='cifar10'
I get the following command line error: zsh: no matches found: --train_data_path=cifar10/data_batch*
.我收到以下命令行错误:
zsh: no matches found: --train_data_path=cifar10/data_batch*
。 I imagine it has to do with the *
, though I'm not sure, and I'm not sure what the work around is.我想它与
*
有关,但我不确定,我不确定解决方法是什么。 Thanks!谢谢!
The answer is as simple as adding single quotes, such as --train_data_path='cifar10/data_batch*'
, for all the filepaths.答案就像为所有文件路径添加单引号一样简单,例如
--train_data_path='cifar10/data_batch*'
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.