PaddlePaddle / PaddleDetection

Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.
Apache License 2.0
12.36k stars 2.84k forks source link

export_model.py export_onnx=True x.shape[dim] is not None tuple index out of range #8939

Open xingfenghaizeiwang opened 2 months ago

xingfenghaizeiwang commented 2 months ago

问题确认 Search before asking

Bug组件 Bug Component

Export

Bug描述 Describe the Bug

python tools/export_model.py -c configs/faster_rcnn/faster_rcnn_r50_fpn_coco.yml -o weights=faster_rcnn_r50_fpn_coco.pdparams export_onnx=True __output_dir=inference_model

if sef.export_onnx: onnx_rois_num_per = rois_num[0]

and x.shape[dim] is not None

tuple index out of range

复现环境 Environment

Windows python 3.9.9 paddlepaddle 2.6.1 paddleDetection release 2.6

Bug描述确认 Bug description confirmation

是否愿意提交PR? Are you willing to submit a PR?