I am using the same model in jetson-inference and also get 22FPS here with SSD-Mobilenet-v2 with detectnet-console and detectnet-camera, so not sure why it is running slower for zeyuchen2016.
zeyuchen2016, what camera are you using and at what resolution? Is your Nano running in 5W mode or 10W?
[TRT] TensorRT version 5.0.6
[TRT] loading NVIDIA plugins...
[TRT] completed loading NVIDIA plugins.
[TRT] detected model format - UFF (extension '.uff')
[TRT] desired precision specified for GPU: FASTEST
[TRT] requested fasted precision for device GPU without providing valid calibrator, disabling INT8
[TRT] native precisions detected for GPU: FP32, FP16
[TRT] selecting fastest native precision for GPU: FP16
[TRT] attempting to open engine cache file ./networks/hello.uff.1.1.GPU.FP16.engine
[TRT] cache file not found, profiling network model on device GPU
[TRT] device GPU, loading /home/jetbot/test/jetson-inference/build/aarch64/bin/ ./networks/hello.uff
[TRT] FeatureExtractor/MobilenetV2/Conv/Relu6: elementwise inputs must have same dimensions or follow broadcast rules (input dimensions were [1,32,150,150] and [1,1,1])
[TRT] FeatureExtractor/MobilenetV2/expanded_conv/depthwise/depthwise: at least three non-batch dimensions are required for input
[TRT] UFFParser: Parser error: FeatureExtractor/MobilenetV2/expanded_conv/depthwise/BatchNorm/batchnorm/mul_1: The input to the Scale Layer is required to have a minimum of 3 dimensions.
[TRT] failed to parse UFF model './networks/hello.uff'
[TRT] device GPU, failed to load ./networks/hello.uff
Any people could help me ?
How to get the uff which could be used in detectnet_camera?
I have implemented video pipelining design in my TensorRT SSD demo program. The new code is âtrt_ssd_async.pyâ. Comparing with my previous (non-async) implementation, FPS improved from 22.8 to 26 when I tested ssd_mobilenet_v1_coco on the huskies.jpg image!
Hi dusty,I do followed the guide,but the follow problem encountered
Compiling: sampleUffSSD.cpp
sampleUffSSD.cpp:22:15: error: âgLoggerâ was declared âexternâ and later âstaticâ [-fpermissive]
static Logger gLogger;
^~~~~~~
In file included from ../common/common.h:55:0,
from BatchStreamPPM.h:9,
from sampleUffSSD.cpp:12:
../common/logger.h:55:15: note: previous declaration of âgLoggerâ
extern Logger gLogger;
^~~~~~~
../Makefile.config:173: recipe for target '../../bin/dchobj/sampleUffSSD.o' failed
make: *** [../../bin/dchobj/sampleUffSSD.o] Error 1
But when I comment out the 22 line like this"//static Logger gLogger;" in the sampleUffSSD.cppïŒI encountered the follow problem again,
Can you help me,thanks!
Compiling: sampleUffSSD.cpp
Linking: ../../bin/sample_uff_ssd_rect_debug
../../bin/dchobj/sampleUffSSD.o: In function `loadModelAndCreateEngine(char const*, int, nvuffparser::IUffParser*, nvinfer1::IHostMemory*&)':
/usr/src/tensorrt/samples/sampleUffSSD_rect/sampleUffSSD.cpp:141: undefined reference to `gLogger'
/usr/src/tensorrt/samples/sampleUffSSD_rect/sampleUffSSD.cpp:141: undefined reference to `gLogger'
/usr/src/tensorrt/samples/sampleUffSSD_rect/sampleUffSSD.cpp:148: undefined reference to `gLogger'
/usr/src/tensorrt/samples/sampleUffSSD_rect/sampleUffSSD.cpp:148: undefined reference to `gLogger'
/usr/src/tensorrt/samples/sampleUffSSD_rect/sampleUffSSD.cpp:185: undefined reference to `gLogger'
../../bin/dchobj/sampleUffSSD.o:/usr/src/tensorrt/samples/sampleUffSSD_rect/sampleUffSSD.cpp:185: more undefined references to `gLogger' follow
collect2: error: ld returned 1 exit status
../Makefile.config:161: recipe for target '../../bin/sample_uff_ssd_rect_debug' failed
make: *** [../../bin/sample_uff_ssd_rect_debug] Error 1
Hello:
The sample in the path /usr/src/tensorrt/samples/sampleUffSSD/ only can test one image,Can anyone help me test multiple images using this sample,I am not familiar with C++,tanks!!!
My demo #3 (ssd) in jkjung-avt/tensorrt_demos GitHub repository is implemented purely in python. It already supports video file, image file or camera as input. Check out the links below:
Hi zeyuchen2016,I do followed the guide,but the follow problem encountered
Compiling: sampleUffSSD.cpp
sampleUffSSD.cpp:22:15: error: âgLoggerâ was declared âexternâ and later âstaticâ [-fpermissive]
static Logger gLogger;
^~~~~~~
In file included from ../common/common.h:55:0,
from BatchStreamPPM.h:9,
from sampleUffSSD.cpp:12:
../common/logger.h:55:15: note: previous declaration of âgLoggerâ
extern Logger gLogger;
^~~~~~~
../Makefile.config:173: recipe for target '../../bin/dchobj/sampleUffSSD.o' failed
make: *** [../../bin/dchobj/sampleUffSSD.o] Error 1
But when I comment out the 22 line like this"//static Logger gLogger;" in the sampleUffSSD.cppïŒI encountered the follow problem again,
Can you help me,thanks!
Compiling: sampleUffSSD.cpp
Linking: ../../bin/sample_uff_ssd_rect_debug
../../bin/dchobj/sampleUffSSD.o: In function `loadModelAndCreateEngine(char const*, int, nvuffparser::IUffParser*, nvinfer1::IHostMemory*&)':
/usr/src/tensorrt/samples/sampleUffSSD_rect/sampleUffSSD.cpp:141: undefined reference to `gLogger'
/usr/src/tensorrt/samples/sampleUffSSD_rect/sampleUffSSD.cpp:141: undefined reference to `gLogger'
/usr/src/tensorrt/samples/sampleUffSSD_rect/sampleUffSSD.cpp:148: undefined reference to `gLogger'
/usr/src/tensorrt/samples/sampleUffSSD_rect/sampleUffSSD.cpp:148: undefined reference to `gLogger'
/usr/src/tensorrt/samples/sampleUffSSD_rect/sampleUffSSD.cpp:185: undefined reference to `gLogger'
../../bin/dchobj/sampleUffSSD.o:/usr/src/tensorrt/samples/sampleUffSSD_rect/sampleUffSSD.cpp:185: more undefined references to `gLogger' follow
collect2: error: ld returned 1 exit status
../Makefile.config:161: recipe for target '../../bin/sample_uff_ssd_rect_debug' failed
make: *** [../../bin/sample_uff_ssd_rect_debug] Error 1
Hi,jkjung!
I have see your guidance to install TensorFlow1.12.2 on Jetson Nano,follow this approach can I install TensorFlow1.10.1 ? I want to install TensorFlow1.10.1 on Nano first and then test whether it able to run the ssd_mobilenet_v2 demo.
Or can you provid the TensorFlow1.10.1 install guidance,thanks very much!ïŒïŒïŒ
Hi,jkjung13
Because my other system not the jetson series installed the tensorflow 1.10.1,I want to install the same version,if itâs not compatible by thenïŒI install the tensorflow 1.12.x again,thanks!!
Hi,dusty_nv,I removing âstaticâ as:Logger gLogger;then can run correctly,the average inference time is 27.7185 ms,but when I exchange the sample_unpruned_mobilenet_v2.uff to myself .uff file witch is converted from ssd_mobilenet_v2 model using the method âpython3.6 /usr/lib/python3.6/dist-packages/uff/bin/convert_to_uff.py --input_file âŠâ,the inference time becomes 39.8804 ms,I want to know how your sample_unpruned_mobilenet_v2.uff file converted or can you supply the method of how to generate the .uff file like sample_unpruned_mobilenet_v2.uff?