I’m using a Python application developed in a deepstream pipeline that is running the YOLOv11 targeting model in its Nano version.
However, I’m encountering problems with the output from the model processing. The generated output is a mask that is quite inaccurate compared to a mask generated by the same model outside of the deepstream. As in the example below.
```
The configuration files followed the recommendations of the repository.
```
The mask generated by the deepstream is a 160x160 float array of values obtained using `obj_meta.mask_params.get_mask_array().` It was resized to the bounding box of the detected object and converted into a mask the same size as the original image. The original mask is this
I trained the provided model using the Ultralytics package and generated the .pt model.
This .pt model was tested outside DeepStream, and the segmentation predictions were working correctly. However, I did not test the ONNX model separately after the conversion.
I have one question regarding your test:
Did you run the ONNX model that I attached in the post, or did you test a different model exported on your side using the repository referenced in the post?
The ONNX model shared in the thread is a segmentation model trained for two classes. I am also attaching a short video segment that can be used to test the segmentation behavior.
Although the repository used for exporting the model is not official, I noticed that it is commonly recommended in related forum posts.
Could you please confirm:
Is there an official NVIDIA-recommended repository or workflow to export a .pt segmentation model to ONNX, generate the required custom parser .so, and prepare the DeepStream inference config (.txt)?
Is there any recommended model architecture or training library for training a segmentation model from scratch that is known to work reliably with DeepStream?
Any guidance on the officially supported or best-practice pipeline would be very helpful.
I’m using the ONNX model you provided. If the .pt format model is fine, then the problem might be with the export process. Please first ensure that the ONNX model can run correctly in the sample code.
I believe that if the ONNX model is exported correctly, YOLO instance segmentation can work with DeepStream; some forum users have attempted this.
Refer to this project, however, we did not provide a sample for YOLO model instance segmentation.
We have provided instance segmentation reference sample code in another project.
If you’d like to try this model, we provide the TAO training tool.