Please provide the following info (tick the boxes after creating this topic): Software Version
[O] DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other
Target Operating System
[O] Linux
QNX
other
Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
[O] DRIVE AGX Orin Developer Kit (not sure its number)
other
SDK Manager Version
[O] 1.9.3.10904
other
Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
[O] native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other
Question.
Hello, I’m running the command ‘deepstream-app -c ./source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8’, which is running the camera data and detecting the object.
But the problem is it takes time too long like 5 minutes.
Can you tell me how to reduce the time using that command??
Thanks.
could you share the whole log? at the first run, the application will cost some tiem to generate NVIDIA TRT engine for every model. after the first run, the application will load the engines directly instead of regenerating.
Can you tell me how to log?
You mentioned that only the first run will takes some time for generating TRT engine,
but the issue I’m facing is that it seems to create a TRT engine every time when I run it.
So every time it takes 5min.
after the first run, TensorRT engines will be generated, then you can set the engine path to model-engine-path. take “model-engine-file=…/…/models/Secondary_VehicleTypes/resnet18.caffemodel_b16_gpu0_int8.engine” for example, you can enter to /opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app and check if the path is valid by “ll …/…/models/Secondary_VehicleTypes/resnet18.caffemodel_b16_gpu0_int8.engine”.
2.if still can’t work, please provide a whole log mentioned in my comment.
WARNING: Serialize engine failed because of file path: /opt/nvidia/deepstream/deepstream-6.3/samples/models/Primary_Detector/resnet10.caffemodel_b4_gpu0_int8.engine opened error
As the log in 1.log shown, the app failed to save engine. please make sure the app has permission to save the engine in that directory. the please check if the engine is generated.
I am unable to change the permissions for the directory (/opt/nvidia/deepstream/deepstream-6.3/samples/configs/deepstream-app). Therefore, I logged the file in the home directory and used the following command:
please refer to my last comment. the app can’t open the file to Serialize the engine. please make sure the app has permission to save the engine to /opt/nvidia/deepstream/deepstream-6.3/samples/models/Primary_Detector.
is it the first run log? if so, it is expected because there is no engine file at the first time. if it is the first time, the app still failed to load resnet10.caffemodel_b2_gpu0_int8.engine because of “open error”. after the first run, is there the generated engine? could you share the result of “ll /opt/nvidia/deepstream/deepstream-6.3/samples/configs/deepstream-app/…/…/models/Primary_Detector/resnet10.caffemodel_b2_gpu0_int8.engine”?
from the log "failed to serialize cuda engine to file… " in the screenshot, the app failed to save engine. can you confirm the engine has been generated? the path is /opt/nvidia/deepstream/deepstream/samples/models/Primary_Detector/resnet10.caffemodel_b2_gpu0_int8.engine