Yolov5 Segmentation model deployed on DeepStream5.1, the mask to the original image is wrong

• Hardware Platform (Jetson / GPU):Xavier jetson
• DeepStream Version: 5.1
• JetPack Version (valid for Jetson only): 4.5
• TensorRT Version: 7.1.3
• Issue Type( questions, new requirements, bugs):questions

I found someone has raised the same question, but they did not provide a solution.
as follows:
In instance segmentation, what should be the data in the mask? - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums

I am currently facing the same issue where the mask is not displaying correctly. What should I modify to fix this? I have been thinking for a long time, but I haven’t been able to find a solution, so I would be very grateful for your help. Thank you.