Please share the error message, as it’s very difficult to help without the details of the error, see this post and this post for some helpful guidelines for helping others help you.
Can you please run the following terminal commands in your Python environment:
yolo checks
and then
pip show openvino
then post the output from both?
Something else you might want to consider trying out as a test, is exporting a pretrained model:
from ultralytics import YOLO
model = YOLO("yolo11n-obb.pt")
ov_path = model.export(format="openvino")
if this works, then it’s likely an issue with the model weights you’re using. The error message when exporting your "punch_obb.pt" model will be critical to help any further.
I just want to how to transform yolo11-obb.pt to openvino model,error model may be imgsz error ,but the example is simple,and i don not know how to transform,nobody other counter by such problems?I mean yolo’s export example has just work in detecting issue,not in obb,or in seg
i know that”s ok, that”s no problem,and then ?are u sure the exported model like cls-openvino-model can be used in yolo’s detecting code? Using cls-openvino-model to judge what kind of the image is always incompatible and caused error, u can try. It always print “ imgsz not trained size like balabalab…”.Y success only in detect kind pt,not in obb, not in seg
if i use 2000x2000pixels image as mataset and use yolo11-obb.pt as base,then out pt model as A_obb.pt,then export to openvino model as A_obb_openvino_model.Using A_obb_openvino_model to detect my 2000x2000pixels image will not work. And error may be “The input tensor size is not equal to the model input type: got [1,3,640,640] expecting [1,3,1024,1024].”
[/quote]
it do work! tks. And i saw an suggested cli command “yolo export model=yolov8s-obb.pt imgsz=640 format=onnx dynamic=True” in onnx exporting , is there a likelihood value named dynamic in openvino exporting ?
There occuring another issue. After using the classification model (cls), I exported it to an OpenVINO model and then performed image classification. The following error occurred.‘’ line 250, in non_max_suppression
xc = prediction[:, 4:mi].amax(1) > conf_thres # candidates
^^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: amax(): Expected reduction dim 1 to have non-zero size”