ssd_mobilenet_v2 模型轉換出現錯誤,該如何排除

我在tool_chain docker 安裝https://github.com/onnx/tensorflow-onnx r1.5

然後git clone https://github.com/kneron/ONNX_Convertor

在optimizer_scripts目錄下執行

python tensorflow2onnx.py /data1/ssdmobilenetv2_float32.pb /data1/ssdmobilenetv2_float32.onnx

ssdmobilenetv2_float32.pb 是 tensorflow 1.13.1 訓練出來的float32模型

出現問題如下

INFO:tensorflow:Froze 0 variables.

[2021-11-02 05:56:25,197] INFO: Froze 0 variables.

INFO:tensorflow:Converted 0 variables to const ops.

[2021-11-02 05:56:25,240] INFO: Converted 0 variables to const ops.

[2021-11-02 05:56:25,832] INFO: Using tensorflow=1.15.3, onnx=1.6.0, tf2onnx=1.8.4/cd55bf

[2021-11-02 05:56:25,833] INFO: Using opset <onnx, 11>

[2021-11-02 05:56:27,281] INFO: Computed 1 values for constant folding

[2021-11-02 05:56:29,269] INFO: folding node using tf type=Select, name=Postprocessor/BatchMultiClassNonMaxSuppression/map/while/PadOrClipBoxList/Select_1

[2021-11-02 05:56:29,414] ERROR: rewriter <function rewrite_single_direction_lstm at 0x7faa2b494a70>: exception switch false branch is followed by non-Exit

Traceback (most recent call last):

...

請問該如何排除這個錯誤

Comments

The discussion has been closed due to inactivity. To continue with the topic, please feel free to post a new discussion.