Hi!
I trained a custom grayscale Yolo8 model using the ultralytics library and I want to use it on the OAK device. The only difference in the model is that is modified to accept 1 channel, instead of 3 channels, images.
When I try to convert it from .pt to .blob using https://www.tools.luxonis.com/ it returns Error while converting to onnx
.
I also tried to:
export the .onnx and .xml/.bin files using the ultralytics library
convert them to .blob using https://blobconverter.luxonis.com/
insert the blob into the pipeline as
detection_nn = pipeline.create(dai.node.YoloDetectionNetwork)
detection_nn.setBlobPath(PATH)
detection_nn.setNumClasses(8)
detection_nn.setCoordinateSize(4)
detection_nn.setAnchors([])
detection_nn.setAnchorMasks({})
detection_nn.setIouThreshold(0.5)
detection_nn.setNumInferenceThreads(2)
but when i run the pipeline it returns this error [DetectionNetwork(3)] [error] Mask is not defined for output layer with width '3549'. Define at pipeline build time using: 'setAnchorMasks' for 'side3549'.
despite Yolo8 is mask less.
Did someone had and managed to solve this problem?