【问题标题】:Incomplete shape error when try to export inference in tensor flow object detection api尝试在张量流对象检测 api 中导出推理时出现不完整的形状错误
【发布时间】:2019-02-06 11:52:35
【问题描述】:

我用 loss 2.x 训练了自定义对象检测器,当我尝试导出它时出现以下错误

我遇到了这个:'Parsing Inputs... Incomplete shape' error while exporting the inference graph in Tensorflow

但我确定标签是相同的:我多次运行它

python3 export_inference_graph.py --input_type image_tensor       --pipeline_config_path training/inception_v2.config --trained_checkpoint_prefix training/model.ckpt-688 --output_directory trained-inference-graphs/output_inference_graph_v1

我收到了错误:

由于形状不完整,114 次操作没有失败统计数据。 解析输入... 形状不完整。

完整报告请查看:https://pastebin.com/mGSBDgJC

编辑:模型使用 eval 检测 python3 eval.py --logtostderr --pipeline_config_path=/home/ic/Documents/objectExtraction/workspace/training_demo/training/inception_v2.config --checkpoint_dir=/home/ic/Documents/objectExtraction/workspace/training_demo/training --eval_dir =/home/ic/Documents/objectExtraction/workspace/training_demo/eval

【问题讨论】:

    标签: python-3.x tensorflow object-detection object-detection-api


    【解决方案1】:

    发生这种情况是因为您没有使用参数input_shape 说明输入分辨率是多少。它只是意味着它无法计算一个操作需要多少次触发器,因为它不知道输入分辨率是多少。您仍然可以毫无问题地使用导出的图进行推理。

    【讨论】:

    • 嗨,谢谢。我可以通过忽略警告来使用图表。输入分辨率表示图像分辨率?
    • 是的,你可以阅读export_inference_graph.py的帮助: input_shape: 如果input_type是image_tensor,这可以显式地设置这个输入张量的形状为固定大小。尺寸将以逗号分隔的整数列表形式提供。值 -1 可用于未知维度。如果未指定,则为 image_tensor, the default shape will be partially specified as [None, None, None, 3]`。
    猜你喜欢
    • 1970-01-01
    • 2020-04-03
    • 2021-01-02
    • 1970-01-01
    • 2019-05-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-01
    相关资源
    最近更新 更多