我目前正在使用Tensorflow制作一个图像分类器,在重新训练过程中,我在输入这些行后不断收到错误。
python tensorflow/examples/image_retraining/retrain.py \
--bottleneck_dir=/tf_files/bottlenecks \
--how_many_training_steps 500 \
--model_dir=/tf_files/inception \
--output_graph=/tf_files/retrained_graph.pb \
--output_labels=/tf_files/retrained_labels.txt \
--image_dir /tf_files/flowers这返回的错误是-
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents
/MacOS/Python: can't open file 'tensorflow/examples/image_retraining/retrain.py':
[Errno 2] No such file or directory我不确定是因为我没有正确安装tensorflow,还是我错过了一些安装。我到处都找不到答案。
我也在运行python2.7。-
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 29 2018, 17:49:27)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin发布于 2018-12-07 02:32:32
可能是因为您没有该文件,请尝试从github下载
https://stackoverflow.com/questions/53655843
复制相似问题