我正在尝试使用tensorflow中的以下代码库为CIFAR10训练一个resnet模型:https://github.com/stanford-futuredata/dawn-bench-models/tree/master/tensorflow/CIFAR10/resnet。尽管自述文件中提到了TensorFlow1.2,但我在尝试安装时得到了一个Could not find a version that satisfies the requirement tensorflow==1.2,所以我改用TensorFlow1.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*。我想它一定与*有关,尽管我不确定,我也不确定是什么工作。谢谢!
发布于 2020-07-19 23:55:53
答案很简单,只需为所有文件路径添加单引号,如--train_data_path='cifar10/data_batch*'。
https://stackoverflow.com/questions/62977383
复制相似问题