Publishing 2019 R1 content
[platform/upstream/dldt.git] / model-optimizer / extensions / front / tf / faster_rcnn_support_api_v1.10.json
1 [
2     {
3         "custom_attributes": {
4         },
5         "id": "ObjectDetectionAPIPreprocessorReplacement",
6         "inputs": [
7             [
8                 {
9                     "node": "map/Shape$",
10                     "port": 0
11                 },
12                 {
13                     "node": "map/TensorArrayUnstack/Shape$",
14                     "port": 0
15                 },
16                 {
17                     "node": "map/TensorArrayUnstack/TensorArrayScatter/TensorArrayScatterV3$",
18                     "port": 2
19                 }
20             ]
21         ],
22         "instances": [
23             ".*Preprocessor/"
24         ],
25         "match_kind": "scope",
26         "outputs": [
27             {
28                 "node": "sub$",
29                 "port": 0
30             },
31             {
32                 "node": "map/TensorArrayStack_1/TensorArrayGatherV3$",
33                 "port": 0
34             }
35         ]
36     },
37     {
38         "custom_attributes": {
39             "clip_before_nms": false,
40             "clip_after_nms": true
41         },
42         "id": "ObjectDetectionAPIProposalReplacement",
43         "include_inputs_to_sub_graph": true,
44         "include_outputs_to_sub_graph": true,
45         "instances": {
46             "end_points": [
47                 "map/TensorArrayStack/TensorArrayGatherV3",
48                 "map_1/TensorArrayStack/TensorArrayGatherV3",
49                 "BatchMultiClassNonMaxSuppression/map/TensorArrayStack_4/TensorArrayGatherV3"
50             ],
51             "start_points": [
52                 "concat",
53                 "concat_1",
54                 "GridAnchorGenerator/Identity",
55                 "Shape"
56             ]
57         },
58         "match_kind": "points"
59     },
60     {
61         "custom_attributes": {
62             "clip_before_nms": false,
63             "clip_after_nms": true,
64             "coordinates_swap_method": "swap_weights"
65         },
66         "id": "ObjectDetectionAPIDetectionOutputReplacement",
67         "inputs": [
68             [
69                 {
70                     "node": "Reshape$",
71                     "port": 0
72                 }
73             ],
74             [
75                 {
76                     "node": "Reshape_1$",
77                     "port": 0
78                 }
79             ],
80             [
81                 {
82                     "node": "ExpandDims$",
83                     "port": 0
84                 }
85             ]
86         ],
87         "instances": [
88             ".*SecondStagePostprocessor/"
89         ],
90         "match_kind": "scope",
91         "outputs": [
92             {
93                 "node": "BatchMultiClassNonMaxSuppression/map/TensorArrayStack/TensorArrayGatherV3$",
94                 "port": 0
95             }
96         ]
97     },
98     {
99        "custom_attributes": {
100             "outputs": "detection_boxes,detection_scores,num_detections"
101         },
102         "id": "ObjectDetectionAPIOutputReplacement",
103         "match_kind": "general"
104     },
105     {
106         "custom_attributes":
107         {
108             "replacements": [["mul/y", "first_stage_max_proposals"]]
109         },
110         "id": "ObjectDetectionAPIConstValueOverride",
111         "match_kind": "general"
112     }
113 ]