Checking the MMAPI documentation, it was updated to the 32.5 release.
Looking at the 04_video_dec_trt example, a command that executes onnx as an argument is provided.
Are you going to show a sample using onnx?
If correct
When will the updated jetson MMAPI be available?
Thank you.
Channel-num:
1-32, Number of file arguments should exactly match the number of channels specified
Supported formats:
H264
H265
OPTIONS:
-h,–help Prints this text
–dbg-level Sets the debug level [Values 0-3]
--trt-deployfile set deploy file name
--trt-modelfile set model file name
--trt-mode 0 fp16 (if supported), 1 fp32, 2 int8
--trt-enable-perf 1[default] to enable perf measurement, 0 otherwise
Hi,
We are able to install correct version. Attach the prints for your reference:
nvidia@tegra-ubuntu:~$ sudo apt install nvidia-l4t-jetson-multimedia-api
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nvidia-l4t-jetson-multimedia-api
0 upgraded, 1 newly installed, 0 to remove and 93 not upgraded.
Need to get 69.5 MB of archives.
After this operation, 89.4 MB of additional disk space will be used.
Get:1 https://repo.download.nvidia.com/jetson/t186 r32.5/main arm64 nvidia-l4t-jetson-multimedia-api arm64 32.5.0-20210115151051 [69.5 MB]
Fetched 69.5 MB in 6s (11.3 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package nvidia-l4t-jetson-multimedia-api.
(Reading database ... 178316 files and directories currently installed.)
Preparing to unpack .../nvidia-l4t-jetson-multimedia-api_32.5.0-20210115151051_arm64.deb ...
Unpacking nvidia-l4t-jetson-multimedia-api (32.5.0-20210115151051) ...
Setting up nvidia-l4t-jetson-multimedia-api (32.5.0-20210115151051) ...
nvidia@tegra-ubuntu:~$ cd /usr/src/jetson_multimedia_api/samples/04_video_dec_trt/
nvidia@tegra-ubuntu:/usr/src/jetson_multimedia_api/samples/04_video_dec_trt$ sudo make
Compiling: video_dec_trt_csvparser.cpp
Compiling: video_dec_trt_main.cpp
make[1]: Entering directory '/usr/src/jetson_multimedia_api/samples/common/classes'
Compiling: NvElementProfiler.cpp
Compiling: NvElement.cpp
Compiling: NvApplicationProfiler.cpp
Compiling: NvVideoDecoder.cpp
Compiling: NvDrmRenderer.cpp
Compiling: NvJpegEncoder.cpp
Compiling: NvVideoConverter.cpp
Compiling: NvBuffer.cpp
Compiling: NvLogging.cpp
Compiling: NvEglRenderer.cpp
Compiling: NvUtils.cpp
Compiling: NvJpegDecoder.cpp
Compiling: NvVideoEncoder.cpp
Compiling: NvV4l2ElementPlane.cpp
Compiling: NvV4l2Element.cpp
make[1]: Leaving directory '/usr/src/jetson_multimedia_api/samples/common/classes'
make[1]: Entering directory '/usr/src/jetson_multimedia_api/samples/common/algorithm/cuda'
Compiling: NvAnalysis.cu
Compiling: NvCudaProc.cpp
make[1]: Leaving directory '/usr/src/jetson_multimedia_api/samples/common/algorithm/cuda'
make[1]: Entering directory '/usr/src/jetson_multimedia_api/samples/common/algorithm/trt'
Compiling: trt_inference.cpp
make[1]: Leaving directory '/usr/src/jetson_multimedia_api/samples/common/algorithm/trt'
Linking: video_dec_trt
nvidia@tegra-ubuntu:/usr/src/jetson_multimedia_api/samples/04_video_dec_trt$ ./video_dec_trt
video_dec_trt [Channel-num] <in-file1> <in-file2> ... <in-format> [options]
Channel-num:
1-32, Number of file arguments should exactly match the number of channels specified
Supported formats:
H264
H265
OPTIONS:
-h,--help Prints this text
--dbg-level <level> Sets the debug level [Values 0-3]
Caffe model:
--trt-deployfile set caffe deploy file name
--trt-modelfile set caffe model file name
ONNX model:
--trt-onnxmodel set onnx model file name, only support dynamic batch(N=-1) onnx model
--trt-mode 0 fp16 (if supported), 1 fp32, 2 int8
--trt-enable-perf 1[default] to enable perf measurement, 0 otherwise
sudo apt install nvidia-l4t-jetson-multimedia-api
[sudo] password for realwave:
Reading package lists… Done
Building dependency tree
Reading state information… Done
nvidia-l4t-jetson-multimedia-api is already the newest version (32.4.4-20201027211332).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Can you tell e when jetson mmapi has been updated?
With the resnet.onnx I gave yesterday, I succeeded in running example 04.
When I run the custom training model as modelfile, the following error appears.
Can you see the error and let me know what needs to be fixed?
It looks like the network input is different, but I’m not sure.
Once I know I need to fill in trt_inference.h for the custom model.
Can you give me some advice?
/usr/src/jetson_multimedia_api_20210127/samples/04_video_dec_trt$ ./video_dec_trt 2 …/…/data/Video/sample_outdoor_car_1080p_10fps.h264 …/…/data/Video/sample_outdoor_car_1080p_10fps.h264 H264 --trt-onnxmodel …/…/data/Model/resnet10/best.onnx --trt-mode 0
set onnx modefile: …/…/data/Model/resnet10/best.onnx
mode has been set to 0(using fp16)
onnx2trt_utils.cpp:220: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
images: kMIN dimensions in profile 0 are [2,3,640,640] but input has static dimensions [1,3,640,640].
Network validation failed.
video_dec_trt: trt_inference.cpp:600: void TRT_Context::onnxToTRTModel(const string&): Assertion `engine’ failed.
I used YOLO, but it is difficult to follow because it is different from the sample.
You are asking for the above information in order to proceed using a model with the same structure as the sample.