What the engine files difference?
Theese is test ok and crash engine files:
engines.zip (22.2 MB)
Run Log:
os.environ[‘GST_DEBUG’] = ‘6’
ubuntu@EAC-5000:~/workspaces/yolov8-for-jetson/DeepStream-gi$ python3 '/home/ubuntu/workspaces/yolov8-for-jetson/DeepStream-gi/deepstream_gi_single_to_muilty_videosave_display.py'
fliter :['30-001b', '30-001c', '31-001b', '31-001c']
Select Cameras :{'30-001b': '/dev/video0', '30-001c': '/dev/video1', '31-001b': '/dev/video2', '31-001c': '/dev/video3'}
Folder 'videos/origin/camera_1' already exists.
Folder 'videos/dewaper/camera_1' already exists.
Folder 'videos/origin/camera_2' already exists.
Folder 'videos/dewaper/camera_2' already exists.
Folder 'videos/origin/camera_3' already exists.
Folder 'videos/dewaper/camera_3' already exists.
Folder 'videos/origin/camera_4' already exists.
Folder 'videos/dewaper/camera_4' already exists.
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Opening in BLOCKING MODE
ArgusV4L2_Open failed: No such file or directory
Opening in BLOCKING MODE
Opening in BLOCKING MODE
ArgusV4L2_Open failed: No such file or directory
Opening in BLOCKING MODE
Opening in BLOCKING MODE
ArgusV4L2_Open failed: No such file or directory
Opening in BLOCKING MODE
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
gstnvtracker: Batch processing is ON
gstnvtracker: Past frame output is OFF
[NvMultiObjectTracker] Initialized
WARNING: Deserialize engine failed because file path: /home/ubuntu/workspaces/yolov8-for-jetson/DeepStream-gi/configs/model_b1_gpu0_fp32.engine open error
0:00:04.124366624 218971 0xdfe3e40 WARN nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<nvinfer> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1897> [UID = 1]: deserialize engine from file :/home/ubuntu/workspaces/yolov8-for-jetson/DeepStream-gi/configs/model_b1_gpu0_fp32.engine failed
0:00:04.269880192 218971 0xdfe3e40 WARN nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<nvinfer> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2002> [UID = 1]: deserialize backend context from engine from file :/home/ubuntu/workspaces/yolov8-for-jetson/DeepStream-gi/configs/model_b1_gpu0_fp32.engine failed, try rebuild
0:00:04.269927008 218971 0xdfe3e40 INFO nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<nvinfer> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1923> [UID = 1]: Trying to create engine from model files
WARNING: [TRT]: onnx2trt_utils.cpp:375: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
Building the TensorRT Engine
Building complete
0:03:07.903868192 218971 0xdfe3e40 INFO nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<nvinfer> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1955> [UID = 1]: serialize cuda engine to file: /home/ubuntu/workspaces/yolov8-for-jetson/DeepStream-gi/model_b1_gpu0_fp32.engine successfully
WARNING: [TRT]: The getMaxBatchSize() function should not be used with an engine built from a network created with NetworkDefinitionCreationFlag::kEXPLICIT_BATCH flag. This function will always return 1.
INFO: [Implicit Engine Info]: layers num: 2
0 INPUT kFLOAT images 3x640x640
1 OUTPUT kFLOAT output0 84x8400
0:03:08.105005184 218971 0xdfe3e40 INFO nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<nvinfer> [UID 1]: Load new model:configs/config_infer_primary_yoloV8.txt sucessfully
NvMMLiteOpen : Block : BlockType = 4
NvMMLiteOpen : Block : BlockType = 4
NvMMLiteOpen : Block : BlockType = 4
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
===== NVMEDIA: NVENC =====
===== NVMEDIA: NVENC =====
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
NvMMLiteBlockCreate : Block : BlockType = 4
NvMMLiteBlockCreate : Block : BlockType = 4
NvMMLiteBlockCreate : Block : BlockType = 4
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
NvMMLiteOpen : Block : BlockType = 4
NvMMLiteOpen : Block : BlockType = 4
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
===== NVMEDIA: NVENC =====
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
NvMMLiteBlockCreate : Block : BlockType = 4
NvMMLiteBlockCreate : Block : BlockType = 4
Segmentation fault (core dumped)
Kernal logs always like theese:
[Thu Nov 21 16:36:10 2024] cpufreq: cpu4,cur:1990000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:12 2024] cpufreq: cpu0,cur:2063000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:14 2024] cpufreq: cpu0,cur:2324000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:18 2024] cpufreq: cpu4,cur:2313000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:19 2024] cpufreq: cpu0,cur:2018000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:20 2024] cpufreq: cpu4,cur:2026000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:23 2024] cpufreq: cpu4,cur:2002000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:25 2024] cpufreq: cpu0,cur:2327000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:26 2024] cpufreq: cpu4,cur:2331000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:28 2024] cpufreq: cpu4,cur:2380000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:32 2024] cpufreq: cpu0,cur:2368000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:38 2024] cpufreq: cpu0,cur:2360000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:40 2024] cpufreq: cpu0,cur:2057000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:42 2024] cpufreq: cpu0,cur:2068000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:42 2024] cpufreq: cpu4,cur:2375000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:45 2024] bwmgr API not supported
[Thu Nov 21 16:36:45 2024] bwmgr API not supported
[Thu Nov 21 16:36:45 2024] bwmgr API not supported
[Thu Nov 21 16:36:45 2024] bwmgr API not supported
[Thu Nov 21 16:36:45 2024] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[Thu Nov 21 16:36:45 2024] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[Thu Nov 21 16:36:45 2024] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[Thu Nov 21 16:36:45 2024] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[Thu Nov 21 16:36:45 2024] bwmgr API not supported
[Thu Nov 21 16:36:45 2024] bwmgr API not supported
[Thu Nov 21 16:36:45 2024] cpufreq: cpu4,cur:2386000,set:2188800,set ndiv:171
[Thu Nov 21 16:36:46 2024] bwmgr API not supported
[Thu Nov 21 16:36:46 2024] bwmgr API not supported