facebookresearch / facebookresearch/detectron2

origin of if operator in onnx export

Open
#4,590 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
34.7k
Forks
7.9k
PR merge metrics
No merged PRs in 30d

Description

When exporting a panoptic_fpn from detectron 2, there is the following subgraph in the onnx graph. The subgraph follows the NMS in the RPN. For my application, I would like to understand where the `If` operator comes from in the source code.
Code used to export the model: `python3 tools/deploy/export_model.py --config-file configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.yaml --output onnx_panoptic_fpn_R_50_1x/ --export-method tracing --format onnx`

![image](https://user-images.githubusercontent.com/103593150/193537092-359423aa-6f5e-4f56-9dc2-364217cf824b.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.