Closed image-rcdat closed 2 weeks ago
π Hello @image-rcdat, thank you for reaching out and sharing your issue with Ultralytics π. We recommend checking out our Docs for guidance on using YOLOv8's features, where you'll find useful Python Tips and export-related details.
If this is a π Bug Report, we kindly ask you to provide a minimum reproducible example of your issue to help us better understand and debug it. Please include all relevant details like your environment configuration and ensure that the dataset, code, and inputs can be tested independently.
pip install -U ultralytics
pt
and xml
models.YOLO can run in any of the following environments if properly set up:
An Ultralytics engineer will review your issue soon. To make debugging more efficient, please also confirm:
labels.txt
classes consistent with your trained model?Finally, if you'd like to engage with our community, explore:
We appreciate your patience and your contribution to improving Ultralytics! β¨
@image-rcdat thanks for reaching out. Let's help resolve your OpenVINO export issue. Based on your code, there are two key points to address:
/255.0
) and uses BGR color space from cv2.imread
. We recommend:image = cv2.cvtColor(cv2.imread("test.jpeg"), cv2.COLOR_BGR2RGB) # Convert to RGB
image_input = image_resized.transpose(2, 0, 1)[None]/255.0 # Add batch dim and normalize
ov_model = YOLO('model_yoloV8_372_openvino_model/') # Load exported OpenVINO dir
results_ov = ov_model(image)
For reference, our OpenVINO export documentation details the required preprocessing steps. If issues persist, please share your metadata.yaml
from the OpenVINO export directory to verify the model configuration.
Thanks, It works for me, I've changed the color channels and normalized the image
@image-rcdat great to hear that resolved the issue! For future reference, our OpenVINO Export Docs detail these preprocessing requirements. If you encounter other challenges or have commercial deployment needs, feel free to explore our Enterprise License options. Happy inferencing! π
Hi guys, I've trained a classifier of 373 classes with yolov8n. I've used this piece of code to convert my
.pt
model to.xml
:But,
xml
model in inference time, answers are irrelevant. I've used this piece of code to check the prediction results,could you please help me out?