我正在尝试使用tensorflow中的以下repo为CIFAR10训练resnet模型:https://github.com/stanford-futuredata/dawn-bench-models/tree/master/tensorflow/CIFAR10/resnet.尽管自述文件提到tensorflow 1.2,但我在尝试安装时得到了Could not find a version that satisfies the requirement tensorflow==1.2
,所以我使用的是tensorflow 1.15。我也在使用Python 3.7.6,并在Mac上运行。当我尝试运行训练脚本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'
我得到以下命令行错误:zsh: no matches found: --train_data_path=cifar10/data_batch*
。我想这与*
有关,尽管我不确定,也不确定周围的工作是什么。谢谢!
答案很简单,只需为所有文件路径添加单引号,如--train_data_path='cifar10/data_batch*'
。