问题:Connection reset by peer error TensorFlow

我正在尝试使用 TensorFlow 和 Docker 构建图像识别器程序当我尝试使用以下代码训练分类器时,我不断收到以下错误:

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/flower_photos

像这样: 在此处输入图像描述

socket.error: [Errno 104] Connection reset by peer

然后当我再次运行代码时,我得到了错误:

IOError: CRC check failed 0x76f1f85e != 0x6caceac0L

有什么建议么?

解答

在解决了这个问题后,我发现解压缩 inception v3 文件时出错,所以我不得不手动安装 TensorFlow git 的目录并将其放入 tf_files 目录,然后在文件图像中删除_retraining.py DATA_URL 包含初始 v3 文件的链接以及使用 DATA_URL 的方法。

Logo

云原生社区为您提供最前沿的新闻资讯和知识内容

更多推荐