Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU): Jetson Orin Nano • DeepStream Version: deepstream-6.4 • JetPack Version (valid for Jetson only): Version: 6.0-b52 • TensorRT Version: Version: 8.6.2 • NVIDIA GPU Driver Version (valid for GPU only): NA • Issue Type( questions, new requirements, bugs)
I have trained the yolov7 model with pre-train weights on my data for the helmet detection. I got the best.pt. Using the following command I get the ONNX model to best.onnx.
You need to check if the net-scale-factor value is right for your own model. You can refer to y = net_scale_factor*(x-mean). You also can add some logs in your libnvdsinfer_custom_impl_Yolo.so lib to check if there are any outputs.
Do I need to calculate the net-scale-factor value? The link suggests only a theoretical explanation. The libnvdsinfer_custom_impl_Yolo.so the file is encrypted. Thanks.
Yes. You need to set the value based on your training parameter. You can also refer to our demo yolo_deepstream. The postprocess is open source nvdsinfer_custom_impl_Yolo.
I would suggest that first make sure your custom post-process script is working fine by printing out all the outputs. Try putting cout statements in your custom post-processor
Then you can proceed to alter the parameters.
You’ll have to debug your parameters like net-scale-factor like yuweiw mentioned.
I have recently started working with the DeepStream app, What do you mean by custom process script? Or does it mean configuration file? If not where I can find the custom process script?
Like @PhongNT mentioned, please refer the yolo deepstream repo.
Especially, the code nvdsinfer_custom_impl_Yolo/nvdsparsebbox_Yolo.cpp which is what I mean by custom post-process script. This script is needed when working with custom models. (Building this script gives you the mentioned .so file)
Here is another link (my repo).
I myself took reference from the above mentioned yolo-deepstream repo and the samples provided by Nvidia.
Refer both the repos and modify your code. Also put cout statements and then build it to get your .so file.
I would still recommend you to read deepstream manuals before doing all this to get a better understanding.