Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error While Running the python code #4

Open
Amajo0209 opened this issue Dec 18, 2023 · 1 comment
Open

Error While Running the python code #4

Amajo0209 opened this issue Dec 18, 2023 · 1 comment

Comments

@Amajo0209
Copy link

Hello.
I am trying to run the Python file from this repository using the given command: python3 deepstream.py -s file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4 -c config_infer_primary_yoloV8_face.txt

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ubuntu@ubuntu-Blade-15-2022-RZ09-0421:~/Documents/DeepStream-Yolo-Face$ python3 deepstream.py -s file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4 -c config_infer_primary_yoloV8_face.txt

SOURCE: file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4
CONFIG_INFER: config_infer_primary_yoloV8_face.txt
STREAMMUX_BATCH_SIZE: 1
STREAMMUX_WIDTH: 1920
STREAMMUX_HEIGHT: 1080
GPU_ID: 0
PERF_MEASUREMENT_INTERVAL_SEC: 5
JETSON: FALSE

gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
[NvMultiObjectTracker] Initialized
0:00:03.153337617 31142 0x2ae9860 INFO nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1988> [UID = 1]: deserialized trt engine from :/home/ubuntu/Documents/DeepStream-Yolo-Face/yolov8n-face.onnx_b1_gpu0_fp32.engine
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: ../nvdsinfer/nvdsinfer_model_builder.cpp:610 [Implicit Engine Info]: layers num: 4
0 INPUT kFLOAT input 3x640x640
1 OUTPUT kFLOAT boxes 8400x4
2 OUTPUT kFLOAT scores 8400x1
3 OUTPUT kFLOAT landmarks 8400x0

0:00:03.208580298 31142 0x2ae9860 INFO nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2091> [UID = 1]: Use deserialized engine model: /home/ubuntu/Documents/DeepStream-Yolo-Face/yolov8n-face.onnx_b1_gpu0_fp32.engine
python3: nvdsinfer_context_impl.cpp:1377: NvDsInferStatus nvdsinfer::NvDsInferContextImpl::resizeOutputBufferpool(uint32_t): Assertion `bindingDims.numElements > 0' failed.
Aborted (core dumped)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Please, I wonder if anyone could help me with this issue, how can I fix it?

DeepStream Version = 6.3
YOLO MODEL = Yolov8n-face
CUDA = 12.3
TensorRT = 8.5.3.1
NVIDIA GRAPHIC = GeForce RTX 3080 Ti
32GB RAM and 1TB SSD

@Amajo0209
Copy link
Author

I got to solve the issue above.

However, I am now facing a new Error. I can run the script and it shows the screen with the video, but the video is frozen, and then I get the following ERROR:

Traceback (most recent call last):
File “deepstream.py”, line 149, in tracker_src_pad_buffer_probe
parse_face_from_meta(frame_meta, obj_meta)
File “deepstream.py”, line 115, in parse_face_from_meta
circle_params.yc = yc
TypeError: (): incompatible function arguments. The following argument types are supported:

  1. (self: pyds.NvOSD_CircleParams, arg0: int) → None

Invoked with: <pyds.NvOSD_CircleParams object at 0x7ff2601a7c70>, -395
Traceback (most recent call last):
File “deepstream.py”, line 149, in tracker_src_pad_buffer_probe
parse_face_from_meta(frame_meta, obj_meta)
File “deepstream.py”, line 115, in parse_face_from_meta
circle_params.yc = yc
TypeError: (): incompatible function arguments. The following argument types are supported:

  1. (self: pyds.NvOSD_CircleParams, arg0: int) → None

Screenshot from 2023-12-19 09-37-58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant