-
Hello everyone, I try to switch from YOLOv10 to YOLOv11 and fail. The reason is unknown (read weird) information being returned by session.Run() method (C++). When I retrieve output tensor shape information: Ort::TensorTypeAndShapeInfo tensor_info=out_tensors.front().GetTensorTypeAndShapeInfo(); I get weird results: out_shape.batch gets 1 -- (ok); When I was using YOLOv10?.onnx the third parameter was output tensor data size (6: left, top, right, bottom, class_id, confidence). With YOLOv11?.onnx it is 8400. I guess there is a compatibility issue or something like that. Kind regards, Vadim. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
There is no any compatibility issue. I am using Yolo V8 right now and it is also have 8400 shape at 640x640 image size.
|
Beta Was this translation helpful? Give feedback.
-
May anyone describe the output data format? Because sample code variants are:
YOLOv10?.onnx I used before produced {left,top,right,bottom,class_id,confidence}. |
Beta Was this translation helpful? Give feedback.
-
Holy crap! Now I understand what is going on. You need to transpose the output matrix to get human readable format: { x, y, w, h, confidence[80] } YOLO v5, v7, v10 use human readable output format; WHY?! |
Beta Was this translation helpful? Give feedback.
Holy crap! Now I understand what is going on. You need to transpose the output matrix to get human readable format:
{ x, y, w, h, confidence[80] }
YOLO v5, v7, v10 use human readable output format;
YOLO v8, v11 -- its transposition.
WHY?!