extends regex matching for conv group of layers
authorLaurentBerger <laurent.berger@univ-lemans.fr>
Tue, 7 May 2019 14:11:08 +0000 (16:11 +0200)
committerLaurentBerger <laurent.berger@univ-lemans.fr>
Tue, 7 May 2019 14:17:25 +0000 (16:17 +0200)
samples/dnn/tf_text_graph_ssd.py

index 35207ca..730e0bb 100644 (file)
@@ -274,7 +274,8 @@ def createSSDGraph(modelPath, configPath, outputPath):
 
     num_matched_layers = 0
     for node in graph_def.node:
-        if re.match('BoxPredictor_\d/BoxEncodingPredictor/Conv2D', node.name) or \
+        if re.match('BoxPredictor_\d/BoxEncodingPredictor/convolution', node.name) or \
+           re.match('BoxPredictor_\d/BoxEncodingPredictor/Conv2D', node.name) or \
            re.match('WeightSharedConvolutionalBoxPredictor(_\d)*/BoxPredictor/Conv2D', node.name):
             node.addAttr('loc_pred_transposed', True)
             num_matched_layers += 1