Pytorch2onnx (#3075)
* Update pytorch2onnx.py which using new logic to convert pytorch to ONNX
* use standard API to check whether in ONNX convert process
* only compare the score value while verifying results between ONNX and pytorch
* move import onnx before import torch, or something weird will happen
* use real images for input
* modifying the way of calling nms
* modify docstring for bbox2result, and remove unnecessary part for onnx exporting
* modify the 'Convert to ONNX' part in docs
* replace or to | in docstring
* update according to the latest mmcv
* add normalize part
* raise error while using low version mmcv
* minor update
* minor update
Co-authored-by:
Jiarui XU <xvjiarui0826@gmail.com>
Showing
- docs/getting_started.md 3 additions, 3 deletionsdocs/getting_started.md
- mmdet/core/anchor/anchor_generator.py 4 additions, 0 deletionsmmdet/core/anchor/anchor_generator.py
- mmdet/core/bbox/coder/delta_xywh_bbox_coder.py 3 additions, 3 deletionsmmdet/core/bbox/coder/delta_xywh_bbox_coder.py
- mmdet/core/bbox/transforms.py 5 additions, 4 deletionsmmdet/core/bbox/transforms.py
- mmdet/core/post_processing/bbox_nms.py 16 additions, 3 deletionsmmdet/core/post_processing/bbox_nms.py
- mmdet/models/detectors/single_stage.py 5 additions, 0 deletionsmmdet/models/detectors/single_stage.py
- setup.cfg 1 addition, 1 deletionsetup.cfg
- tools/pytorch2onnx.py 127 additions, 85 deletionstools/pytorch2onnx.py
Please register or sign in to comment