Hi,
Great debugging — you’re absolutely right: the DrawYolov8BBoxSegmentation VI expects a very specific ONNX output format. The error 1097 usually appears when the model’s outputs don’t match what the LabVIEW wrapper expects (especially shapes and types).
In the provided example, the YOLOv11 model was not used directly from Ultralytics export. We modified the ONNX graph to include post-processing layers directly inside the model — that’s why you see additional layers in Netron. These layers make the extraction of masks much easier and are tailored to work with our LabVIEW function.
At this stage, using a model exported directly from Ultralytics can indeed be challenging. The DrawYolov8BBoxSegmentation VI was specifically built to work with this internal example, and does not yet support arbitrary YOLO exports. If you want to use your own exported model, you’ll need to implement a custom post-processing step (to apply NMS, extract boxes, masks, etc.).
We recommend including the parameter nms=True when exporting with Ultralytics, like this:
yolo export model=yolo11m-seg.pt format=onnx imgsz=640,640 opset=17 nms=True
This will generate cleaner and more interpretable outputs that are easier to work with in LabVIEW.
Once you have post-processed data (bounding boxes, masks, classes), you can use other functions from the Computer Vision Toolkit to display results manually.
That said, if you’re okay waiting a bit, we’re currently working on a more integrated solution. Our goal is to let users load any YOLO ONNX model exported from Ultralytics and automatically generate a compatible graph (including post-processing) that works directly with our display functions. However, this feature is still under development — especially the logic to dynamically adapt to image sizes, number of classes, and segmentation heads.
Thanks again for your feedback — you’re helping us improve the toolkit for everyone.
Graiphic team