Hello,
I have recently trained, converted, and exported the newest iteration of the YOLO family, Gold-YOLO (Nano).
The first step after training was onnx conversion with image size 640,640, batch size of 1, (etc. standard inputs).
Onnx Conversion:
!python /content/drive/MyDrive/Efficient-Computing/Detection/Gold-YOLO/deploy/ONNX/export_onnx.py --weights /content/drive/MyDrive/Efficient-Computing/Detection/Gold-YOLO/runs/train/gold_yolo-n/weights/best_ckpt.pt --device 0 --simplify --batch 1
The second step was to run it through the Luxonis blob converter with the following params
BlobConverter Params: --data_type=FP16 --mean_values=[127.5,127.5,127.5] --scale_values=[255,255,255] --reverse_input_channels
With number of shaves = 6.
Finally I ran the .blob file through a standard depthai script for writing the bounding boxes to a frame with the following network specific settings. Anchors were extracted from the Gold-Yolo config.
detectionNetwork.setConfidenceThreshold(0.65)
detectionNetwork.setNumClasses(2)
detectionNetwork.setCoordinateSize(4)
detectionNetwork.setAnchors([10, 13, 19, 19, 33, 23, 30, 61, 59, 59, 59, 119, 116, 90, 185, 185, 373, 326])
detectionNetwork.setAnchorMasks({"side28":[0,1,2],"side14":[3,4,5],"side7":[6,7,8]})
detectionNetwork.setIouThreshold(0.5)
The output is either nothing, ie. I run the script and nothing happens or a frame appears with 50+ bounding boxes and the following output.
[14442C10511593CD00] [20.1.1] [97.899] [XLinkOut(3)] [
error
] Message has too much metadata (78323B) to serialize. Maximum is 51200B. Dropping message
Just to reiterate This is the newest Yolo, any help would be much appreciated!