Hello. I’m trying to run ssd_inception_v2_coco_2017_11_17.tar.gz with TensrRT.
According to instruction, UFF file is generated. But sample_uff_ssd does not work. Can I solve it?
$ convert-to-uff tensorflow --input-file ssd_inception_v2_coco_2017_11_17/frozen_inference_graph.pb -O NMS -p config.py
Converting as custom op NMS_TRT NMS
name: "NMS"
op: "NMS_TRT"
input: "concat_box_loc"
input: "concat_priorbox"
input: "concat_box_conf"
attr {
key: "backgroundLabelId_u_int"
value {
i: 0
}
}
attr {
key: "confSigmoid_u_int"
value {
i: 1
}
}
attr {
key: "confidenceThreshold_u_float"
value {
f: 9.99999993922529e-09
}
}
attr {
key: "inputOrder_u_ilist"
value {
list {
i: 0
i: 2
i: 1
}
}
}
attr {
key: "isNormalized_u_int"
value {
i: 1
}
}
attr {
key: "keepTopK_u_int"
value {
i: 100
}
}
attr {
key: "nmsThreshold_u_float"
value {
f: 0.6000000238418579
}
}
attr {
key: "numClasses_u_int"
value {
i: 91
}
}
attr {
key: "scoreConverter_u_str"
value {
s: "SIGMOID"
}
}
attr {
key: "shareLocation_u_int"
value {
i: 1
}
}
attr {
key: "topK_u_int"
value {
i: 100
}
}
attr {
key: "varianceEncodedInTarget_u_int"
value {
i: 0
}
}
Warning: No conversion function registered for layer: FlattenConcat_TRT yet.
Converting as custom op FlattenConcat_TRT concat_box_conf
name: "concat_box_conf"
op: "FlattenConcat_TRT"
input: "BoxPredictor_0/Reshape_1"
input: "BoxPredictor_1/Reshape_1"
input: "BoxPredictor_2/Reshape_1"
input: "BoxPredictor_3/Reshape_1"
input: "BoxPredictor_4/Reshape_1"
input: "BoxPredictor_5/Reshape_1"
attr {
key: "axis_u_int"
value {
i: 1
}
}
...
And sample_uff_ssd output ERRORs.
$ ../../bin/sample_uff_ssd
../../data/ssd/sample_ssd.uff
Begin parsing model...
ERROR: UFFParser: Validator error: NMS: Unsupported operation _NMS_TRT
ERROR: sample_uff_ssd: Fail to parse
sample_uff_ssd: sampleUffSSD.cpp:667: int main(int, char**): Assertion `tmpEngine != nullptr' failed.
Aborted (core dumped)
TensorRT version is 4.0.1.6-1+cuda9.0
uff (0.4.0)
graphsurgeon (0.2.0)