【问题标题】:Zsh error when trying to run tensorflow model training script尝试运行 tensorflow 模型训练脚本时出现 Zsh 错误
【发布时间】:2020-07-19 07:18:01
【问题描述】:

我正在尝试使用 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*。我想这与* 有关,尽管我不确定,我不确定解决方法是什么。谢谢!

【问题讨论】:

标签: python tensorflow scripting command-line-arguments zsh


【解决方案1】:

答案就像为所有文件路径添加单引号一样简单,例如--train_data_path='cifar10/data_batch*'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-10-02
    • 1970-01-01
    • 2022-06-22
    • 2020-02-03
    • 2022-01-26
    • 2019-05-19
    • 1970-01-01
    相关资源
    最近更新 更多