TensorFlow对象检测API:导出过程被杀死

问题描述 投票:0回答:1

我一直在研究TensorFlow对象检测指南,以逐步训练宠物TensorFlow Link图像上的对象检测器,现在已经在model.ckpt中训练了/models/research directory文件。但是,当我运行export_inference_graph.py时,该进程将被杀死,没有错误消息,并且不会创建任何冻结的推断graph .pb文件。

运行:

python object_detection/export_inference_graph.py \
     --input_type image_tensor \
     --pipeline_config_path object_detection/samples/configs/faster_rcnn_resnet101_pets.config \
     --trained_checkpoint_prefix model.ckpt-31394 \
     --output_directory exported_graphs

最后几行:

>     ======================End of Report==========================
>     2019-03-04 22:32:13.368307: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:
> 2600000000 Hz
>     2019-03-04 22:32:13.370375: I tensorflow/compiler/xla/service/service.cc:150] XLA service
> 0x55ac8072fae0 executing computations on platform Host. Devices:
>     2019-03-04 22:32:13.370689: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor
> device (0): <undefined>, <undefined>
>     WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py:1266:
> checkpoint_exists (from tensorflow.python.training.checkpoi
>     nt_management) is deprecated and will be removed in a future version.
>     Instructions for updating:
>     Use standard file APIs to check for files with this prefix.
>     WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/tools/freeze_graph.py:232:
> convert_variables_to_constants (from tensorflow.python.f
>     ramework.graph_util_impl) is deprecated and will be removed in a future version.
>     Instructions for updating:
>     Use tf.compat.v1.graph_util.convert_variables_to_constants
>     WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/graph_util_impl.py:245:
> extract_sub_graph (from tensorflow.python.framewo
>     rk.graph_util_impl) is deprecated and will be removed in a future version.
>     Instructions for updating:
>     Use tf.compat.v1.graph_util.extract_sub_graph
>     Killed

有人知道发生了什么问题吗?

python python-2.7 tensorflow object-detection-api
1个回答
0
投票

[在Docker容器中运行TensorFlow Python应用程序时也遇到类似的情况。

© www.soinside.com 2019 - 2024. All rights reserved.