valdivj / Deepstream-IGN-Maker-YOLO

Nvidia Deepstream YOLO Python App
21 stars 8 forks source link

yolov3.weights file missing #1

Open utkarsh23kushwaha opened 1 year ago

utkarsh23kushwaha commented 1 year ago

Hii there, I cloned this repo to run deepstream_ignition_IP_File_rtsp_yolo.py file , but it turns out that yolo.weights file is missing can you please upload or share the link to it...

valdivj commented 1 year ago

In the deepstream folder is a readme file that explains how to run a “prebuild.sh” file that will down load all the weights. Opt/nvidia/deepstream/deepstream-6.xx/sources/objectDetector_Yolo/README. Use sudo in front of the “./prebuild.sh” command.

From: utkarsh23kushwaha @.> Sent: Tuesday, June 13, 2023 7:01 AM To: valdivj/Deepstream-IGN-Maker-YOLO @.> Cc: Subscribed @.***> Subject: [valdivj/Deepstream-IGN-Maker-YOLO] yolov3.weights file missing (Issue #1)

EXTERNAL EMAIL: DO NOT click any links or open any attachments unless you trust the sender and know the content is safe.

Hii there, I cloned this repo to run deepstream_ignition_IP_File_rtsp_yolo.py file , but it turns out that yolo.weights file is missing can you please upload or share the link to it...

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/valdivj/Deepstream-IGN-Maker-YOLO/issues/1__;!!AWL9ZJ8!MTP2h7QeQdYkCzJ7zTMt_dn5wX7kf0E9V5w13UdExMZxh1hnjUfoMLna-wJaJVGT__X5idLIaGiH4P-FdkRo$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ADK3ANO5SNWW2B74DCYAA3LXLBXCBANCNFSM6AAAAAAZE5QDTE__;!!AWL9ZJ8!MTP2h7QeQdYkCzJ7zTMt_dn5wX7kf0E9V5w13UdExMZxh1hnjUfoMLna-wJaJVGT__X5idLIaGiH4MhAxTdY$. You are receiving this because you are subscribed to this thread.Message ID: @.***>

utkarsh23kushwaha commented 1 year ago

Actually I got all the required files... but still keep getting this :

ERROR: nvdsinfer_backend.cpp:38 cudaStreamCreateWithPriority failed, cuda err_no:222, err_str:cudaErrorUnsupportedPtxVersion 0:05:51.168639720 55514 0x55922bab1b30 ERROR nvinfer gstnvinfer.cpp:674:gst_nvinfer_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::allocateResource() [UID = 1]: Failed to create preprocessor cudaStream 0:05:51.168660590 55514 0x55922bab1b30 ERROR nvinfer gstnvinfer.cpp:674:gst_nvinfer_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::preparePreprocess() [UID = 1]: preprocessor allocate resource failed ERROR: nvdsinfer_context_impl.cpp:1275 Infer Context prepare preprocessing resource failed., nvinfer error:NVDSINFER_TENSORRT_ERROR 0:05:51.197942721 55514 0x55922bab1b30 WARN nvinfer gstnvinfer.cpp:888:gst_nvinfer_start: error: Failed to create NvDsInferContext instance 0:05:51.197986385 55514 0x55922bab1b30 WARN nvinfer gstnvinfer.cpp:888:gst_nvinfer_start: error: Config file path: config_infer_primary_yoloV3.txt, NvDsInfer Error: NVDSINFER_TENSORRT_ERROR

Do you know what might be causing it ?

utkarsh23kushwaha commented 1 year ago

Also thanks for a quick reply !! Really Appreciate it

valdivj commented 1 year ago

You may have to go into the config.txt files and set the full path to their locations for things like .weights and labels files and the other items that have paths to them

From: utkarsh23kushwaha @.> Sent: Tuesday, June 13, 2023 9:23 AM To: valdivj/Deepstream-IGN-Maker-YOLO @.> Cc: Joe Valdivia @.>; Comment @.> Subject: Re: [valdivj/Deepstream-IGN-Maker-YOLO] yolov3.weights file missing (Issue #1)

EXTERNAL EMAIL: DO NOT click any links or open any attachments unless you trust the sender and know the content is safe.

Actually I got all the required files... but still keep getting this :

ERROR: nvdsinfer_backend.cpp:38 cudaStreamCreateWithPriority failed, cuda err_no:222, err_str:cudaErrorUnsupportedPtxVersion 0:05:51https://urldefense.com/v3/__https:/www.youtube.com/watch?v=RlkRd5wGZNE&t=351s__;!!AWL9ZJ8!LyJZXrh-Gv33Tbe2uYmCyYOulN16pyUCmLeNh7xJtCBNZc_eBqLO0I6nAOtf5KwHzJWm2Asymln36d5fkjP3$.168639720 55514 0x55922bab1b30 ERROR nvinfer gstnvinfer.cpp:674:gst_nvinfer_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::allocateResource() [UID = 1]: Failed to create preprocessor cudaStream 0:05:51https://urldefense.com/v3/__https:/www.youtube.com/watch?v=RlkRd5wGZNE&t=351s__;!!AWL9ZJ8!LyJZXrh-Gv33Tbe2uYmCyYOulN16pyUCmLeNh7xJtCBNZc_eBqLO0I6nAOtf5KwHzJWm2Asymln36d5fkjP3$.168660590 55514 0x55922bab1b30 ERROR nvinfer gstnvinfer.cpp:674:gst_nvinfer_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::preparePreprocess() [UID = 1]: preprocessor allocate resource failed ERROR: nvdsinfer_context_impl.cpp:1275 Infer Context prepare preprocessing resource failed., nvinfer error:NVDSINFER_TENSORRT_ERROR 0:05:51https://urldefense.com/v3/__https:/www.youtube.com/watch?v=RlkRd5wGZNE&t=351s__;!!AWL9ZJ8!LyJZXrh-Gv33Tbe2uYmCyYOulN16pyUCmLeNh7xJtCBNZc_eBqLO0I6nAOtf5KwHzJWm2Asymln36d5fkjP3$.197942721 55514 0x55922bab1b30 WARN nvinfer gstnvinfer.cpp:888:gst_nvinfer_start: error: Failed to create NvDsInferContext instance 0:05:51https://urldefense.com/v3/__https:/www.youtube.com/watch?v=RlkRd5wGZNE&t=351s__;!!AWL9ZJ8!LyJZXrh-Gv33Tbe2uYmCyYOulN16pyUCmLeNh7xJtCBNZc_eBqLO0I6nAOtf5KwHzJWm2Asymln36d5fkjP3$.197986385 55514 0x55922bab1b30 WARN nvinfer gstnvinfer.cpp:888:gst_nvinfer_start: error: Config file path: config_infer_primary_yoloV3.txt, NvDsInfer Error: NVDSINFER_TENSORRT_ERROR

Do you know what might be causing it ?

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/valdivj/Deepstream-IGN-Maker-YOLO/issues/1*issuecomment-1589640708__;Iw!!AWL9ZJ8!LyJZXrh-Gv33Tbe2uYmCyYOulN16pyUCmLeNh7xJtCBNZc_eBqLO0I6nAOtf5KwHzJWm2Asymln36WU31NVb$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ADK3ANJWCAXUOVXWMWDAUOTXLCHX3ANCNFSM6AAAAAAZE5QDTE__;!!AWL9ZJ8!LyJZXrh-Gv33Tbe2uYmCyYOulN16pyUCmLeNh7xJtCBNZc_eBqLO0I6nAOtf5KwHzJWm2Asymln36cIO4W60$. You are receiving this because you commented.Message ID: @.***>

utkarsh23kushwaha commented 1 year ago

Hii there,

I was able to run the script successfully, thanks but the TRT engine generation part is taking a LOT of time !! and that too when I am working on Tesla T4 if possible can you please suggest some ways to reduce this time maybe

And Also it's not working for INT8 precision mode it throws error only works for FP16 or 32

valdivj commented 1 year ago

In the config.txt file there is a path to the generated TRT engine. Make sure that path is correct. I noticed that the generated TRT engine is sometimes named different than what’s in the config.txt file. When the program runs the first time it creates the TRT engine. Then After that it looks for the TRT engine first ,if it doesn’t find it will generate one.

From: utkarsh23kushwaha @.> Sent: Wednesday, June 14, 2023 4:28 AM To: valdivj/Deepstream-IGN-Maker-YOLO @.> Cc: Joe Valdivia @.>; Comment @.> Subject: Re: [valdivj/Deepstream-IGN-Maker-YOLO] yolov3.weights file missing (Issue #1)

EXTERNAL EMAIL: DO NOT click any links or open any attachments unless you trust the sender and know the content is safe.

Hii there,

I was able to run the script successfully, thanks but the TRT engine generation part is taking a LOT of time !! and that too when I am working on Tesla T4 if possible can you please suggest some ways to reduce this time maybe

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/valdivj/Deepstream-IGN-Maker-YOLO/issues/1*issuecomment-1591011185__;Iw!!AWL9ZJ8!O8aW35WmKwfDBQkc7z9X3p3VxZt1lBH42Ma1YkCFWRAEKQym-LSm8mxord2Xr0o_H0g5PDFTW1xgYJyvfDI7$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ADK3ANN57XQAYFDTGUUWEJ3XLGN4VANCNFSM6AAAAAAZE5QDTE__;!!AWL9ZJ8!O8aW35WmKwfDBQkc7z9X3p3VxZt1lBH42Ma1YkCFWRAEKQym-LSm8mxord2Xr0o_H0g5PDFTW1xgYJsv-ZBp$. You are receiving this because you commented.Message ID: @.***>