HI, I am trying to convert SSD mobilenet model (ssd_mobilenet_v2_coco_2018_03_29) to an Engine file. I followed all the steps given in the page, GitHub - AastaNV/TRT_object_detection: Python sample for referencing object detection model with TensorRT. I get the below error,
Traceback (most recent call last):
File “main.py”, line 19, in
ctypes.CDLL(“/home/einfochips/Xavier board all codes latest/TRT_object_detection-master/lib/libflattenconcat.so”)
File “/usr/lib/python3.6/ctypes/init.py”, line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: libnvinfer.so.5: cannot open shared object file: No such file or directory
I followed the below link
and tried to build “libflattenconcat.so”, but I am unable to build. As I checked, I am using TensorRT 7.0 version, where this file comes pre-installed.
I am stuck here for days. KIndly help me to solve this issue.
Hardware : Jetson Nano
OS: Ubuntu 18.04
Cuda : version 10.1
Tensorflow : >2
TensorRT 7.0
@AastaLLL Thanks. I removed the line18 : ctypes.CDLL(“lib/libflattenconcat.so”)
I get the below error,
2020-12-08 10:31:53.822486: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.2
Graph created successfully
NOTE: UFF has been tested with TensorFlow 1.15.0.
WARNING: The version of TensorFlow installed on this system is not guaranteed to work with UFF.
UFF Version 0.6.9
=== Automatically deduced input nodes ===
[name: “Input”
op: “Placeholder”
attr {
key: “dtype”
value {
type: DT_FLOAT
}
}
attr {
key: “shape”
value {
shape {
dim {
size: 1
}
dim {
size: 3
}
dim {
size: 300
}
dim {
size: 300
}
}
}
}
]
=========================================
Using output node NMS
Converting to UFF graph
Warning: No conversion function registered for layer: NMS_TRT yet.
Converting NMS as custom op: NMS_TRT
WARNING:tensorflow:From /usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py:226: The name tf.AttrValue is deprecated. Please use tf.compat.v1.AttrValue instead.
Warning: No conversion function registered for layer: GridAnchor_TRT yet.
Converting GridAnchor as custom op: GridAnchor_TRT
Warning: No conversion function registered for layer: FlattenConcat_TRT yet.
Converting concat_box_loc as custom op: FlattenConcat_TRT
Warning: No conversion function registered for layer: FlattenConcat_TRT yet.
Converting concat_box_conf as custom op: FlattenConcat_TRT
DEBUG [/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py:143] Marking [‘NMS’] as outputs
No. nodes: 1094
UFF Output written to tmp.uff #assertionflattenConcat.cpp,49
Aborted (core dumped)
After this I get the error saying “Python3 stopped unexpectedly”, you dont have enough memory to analyse the problem.
@AastaLLL@kayccc: hello team, kindly help to solve this issue. I have checked the board is at maximum performance level using command: sudo nvpmodel -q, which gives > NV Power Mode: MAXN