transfer it to ONNX with the command “python3 onnx_export.py --model-dir=models/dmc”
but when I try to do inference with “detectnet --model=models/dmc/ssd-mobilenet.onnx --labels=models/dmc/labels.txt --input-blob=input_0 --output-cvg=scores --output-bbox=boxes “/home/user/jetson-inference/python/training/detection/ssd/data_dmc/val/Dm*.jpg” data_dmc/val_result/”
I always get the following error: (looks like a problem in cudaTensorNormMeanRGB() but I couldn’t solve it. I tried to reinstall but same error. At jetson nano it works.)
[image] loaded ‘/home/user/jetson-inference/python/training/detection/dmc/data_dmc/val/Dm000.jpg’ (640x480, 3 channels)
[cuda] no kernel image is available for execution on the device (error 209) (hex 0xD1)
[cuda] /home/user/jetson-inference/c/tensorConvert.cu:236
[cuda] no kernel image is available for execution on the device (error 209) (hex 0xD1)
[cuda] /home/user/jetson-inference/c/detectNet.cpp:724
[TRT] detectNet::Detect() – cudaTensorNormMeanRGB() failed
detected 0 objects in image
[OpenGL] glDisplay – set the window size to 640x480
[OpenGL] creating 640x480 texture (GL_RGB8 format, 921600 bytes)
[cuda] registered openGL texture for interop access (640x480, GL_RGB8, 921600 bytes)
[image] saved ‘data_dmc/val_result/0.jpg’ (640x480, 3 channels)
[TRT] ------------------------------------------------
[TRT] Timing Report models/dmc/ssd-mobilenet.onnx
[TRT] ------------------------------------------------
[cuda] invalid resource handle (error 400) (hex 0x190)
[cuda] /home/user/jetson-inference/build/x86_64/include/jetson-inference/tensorNet.h:685
[TRT] Pre-Process CPU 0.00000ms CUDA 0.00000ms
[TRT] Total CPU 0.00000ms CUDA 0.00000ms
[TRT] ------------------------------------------------
thank you very much for the fast response and help.
I changed the file “jetson-inference/CMakeLists.txt” as you recommended and run again
$ cmake …/
$ make -j$(nproc) —>>> Here I got the error:
±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1245 G /usr/lib/xorg/Xorg 150MiB |
| 0 N/A N/A 1466 G /usr/bin/gnome-shell 111MiB |
| 0 N/A N/A 22118 G /usr/lib/firefox/firefox 2MiB |
±----------------------------------------------------------------------------+