Yolo segmentation model conversion from python

  • Creator
    Topic
  • #259594
    Ahmed AboabdallahAhmed Aboabdallah
    Participant
      @demhack

      I was testing conversion from a Yolo segmentation model in python to onnx format then implementing it in the example Yolov11 camera.

      The conversion process was as the following
      yolo export model=yolo11m-seg.pt format=onnx

      The updates made are the following

      Replacing the example model to be a path and editing the resize vi to make the image 640*640

      the DrawYolyv8BBoxSegmentation block gives an error 1097.

      Tracing this error more and reviewing the inputs I noticed that the array shape is different between my model and the example model so I opened netron to compare.

      The example model has a lot of layers that are not present in the original model these layers does make the extraction of mask easier.

      Can some one guide me through the whole process to convert my model to onnx so that it can work and have these extra layers.

    • You must be logged in to reply to this topic.