In the Caffe network, some layers of the same type have different computing functions. For example, at the DetectionOutput layer, you need to specify the detection operator types such as FSRDetectionOutput and SSDDetectionOutput through operator mapping. Otherwise, the OMG fails to generate the offline model. To avoid errors, use either of the following solutions:
Solution 1: Add the --op_name_map parameter to the OMG command. For details, please refer to the settings of the op_name_map parameter in OMG Parameters.
Solution 2: In the proto model file of the original network, specify the output operator type as SSDDetectionOutput, as shown in the following figure.
Figure 1 Output operator type before modification (left) and after modification (right)
