Part Number: SK-TDA4VM
Other Parts Discussed in Thread: TDA4VM
Hello,
I'm trying to compile model artifacts for a SSD TFLite model using the tflrt_delegate.py script, and I configured the .prototxt following the documentation: Object Detection Meta Architectures. It worked already for a similar model, and I don't understand why but for this second one I'm getting this error:
root@3fd3fb4e0c44:/home/root/examples/osrt_python/tfl# python3 tflrt_delegate.py -c
Running 1 Models - ['ssd_mobilenet_v2_coco_quant_postprocess']
Running_Model : ssd_mobilenet_v2_coco_quant_postprocess
TIDL Meta PipeLine (Proto) File : ../../../models/public/ssd_mobilenet_v2_coco_quant_postprocess.prototxt
Number of OD backbone nodes = 81
Size of odBackboneNodeIds = 81
Preliminary number of subgraphs:1 , 111 nodes delegated out of 111 nodes
TF Meta PipeLine (Proto) File : ../../../models/public/ssd_mobilenet_v2_coco_quant_postprocess.prototxt
num_classes : 91
y_scale : 10.000000
x_scale : 10.000000
w_scale : 5.000000
h_scale : 5.000000
num_keypoints : 5.000000
score_threshold : 0.600000
iou_threshold : 0.450000
max_detections_per_class : 200
max_total_detections : 100
scales, height_stride, width_stride, height_offset, width_offset
0.2000000, -1.0000000, -1.0000000, -1.0000000, -1.0000000
0.3500000, -1.0000000, -1.0000000, -1.0000000, -1.0000000
0.5000000, -1.0000000, -1.0000000, -1.0000000, -1.0000000
0.6500000, -1.0000000, -1.0000000, -1.0000000, -1.0000000
0.8000000, -1.0000000, -1.0000000, -1.0000000, -1.0000000
0.9500000, -1.0000000, -1.0000000, -1.0000000, -1.0000000
aspect_ratios
1.0000000
2.0000000
0.5000000
3.0000000
0.3333000
Error: Layer 6, BoxPredictor_3/BoxEncodingPredictor/BiasAdd;BoxPredictor_5/BoxEncodingPredictor/Conv2D;BoxPredictor_3/BoxEncodingPredictor/Conv2D;BoxPredictor_3/BoxEncodingPredictor/biases1: BoxPredictor_3/BoxEncodingPredictor/BiasAdd;BoxPredictor_5/BoxEncodingPredictor/Conv2D;BoxPredictor_3/BoxEncodingPredictor/Conv2D;BoxPredictor_3/BoxEncodingPredictor/biases1 is missing inputs in the network and cannot be topologically sorted
Input 0: BoxPredictor_3/BoxEncodingPredictor/BiasAdd;BoxPredictor_5/BoxEncodingPredictor/Conv2D;BoxPredictor_3/BoxEncodingPredictor/Conv2D;BoxPredictor_3/BoxEncodingPredictor/biases1, dataId=0
Could not find all the inputs of tf_ssd_detection_output_layer in the base network
Did someone encounter this error?
This is my model config in model_configs.py:
'ssd_mobilenet_v2_coco_quant_postprocess' : {
'model_path' : os.path.join(models_base_path,'ssd_mobilenet_v2_coco_quant_postprocess.tflite'),
'mean': [127.5, 127.5, 127.5],
'scale' : [1/127.5, 1/127.5, 1/127.5],
'num_images' : numImages,
'num_classes': 91,
'model_type': 'od',
'session_name' : 'tflitert',
'meta_layers_names_list' : os.path.join(models_base_path, 'ssd_mobilenet_v2_coco_quant_postprocess.prototxt'),
'meta_arch_type' : 1,
'od_type' : 'HasDetectionPostProcLayer'
},