We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2024.1.0-15008-f4afc983258-releases/2024/1
Windows System
CPU
PyTorch
yolov8n-cls.pt, yolov8n.pt and yolov8n-seg.pt
I learnt OpenVINO 2024.1 can read the Pytorch model: xxx.pt directly as below:
However, I fail to read the yolov8n-cls.pt, yolov8n.pt and yolov8n-seg.pt model using the code as below
import openvino as ov model_path = r".\yolov8n-cls.pt" # Read the Pytorch model print(ov.get_version()) core = ov.Core() model = core.read_model(model_path) compiled_model = core.compile_model(model, "CPU")
Error will happen as below, when read yolov8n-cls.pt, yolov8n.pt and yolov8n-seg.pt by read_model()
Step 1: set up the environment
pip install openvino ultralytics
Step 2: export yolov8n.pt
yolo export model=yolov8n-cls.pt format=onnx
Step 3: execute the code
No response
The text was updated successfully, but these errors were encountered:
Hello @openvino-book, Thank you for reaching the OpenVINO!
PyTorch native model representation is python so we only support the PyTorch model through the convert_model Python API(See docs).
Also there is a notebook on how to deal with the Yolov8. Check this out here.
Thank you!
Sorry, something went wrong.
andrei-kochin
No branches or pull requests
OpenVINO Version
2024.1.0-15008-f4afc983258-releases/2024/1
Operating System
Windows System
Device used for inference
CPU
Framework
PyTorch
Model used
yolov8n-cls.pt, yolov8n.pt and yolov8n-seg.pt
Issue description
I learnt OpenVINO 2024.1 can read the Pytorch model: xxx.pt directly as below:
![1717814837220](https://private-user-images.githubusercontent.com/128127436/337828198-7606d4c5-f573-4ae3-bd40-3cea1ca6ebd7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk0MDMyODIsIm5iZiI6MTcxOTQwMjk4MiwicGF0aCI6Ii8xMjgxMjc0MzYvMzM3ODI4MTk4LTc2MDZkNGM1LWY1NzMtNGFlMy1iZDQwLTNjZWExY2E2ZWJkNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyNlQxMTU2MjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MmUyYTExMjA0ZWI3Njk4OWFiZmEyYmExNGE2ZDY4ZDVjNzYwYWE2NTA5OTI1YzRjNmZmMGZmYWI3MWVlMjg5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.r3w8gtXGvA-K4hy0E1wk2JRoMkXEZmP36EidMvumpgo)
However, I fail to read the yolov8n-cls.pt, yolov8n.pt and yolov8n-seg.pt model using the code as below
Error will happen as below, when read yolov8n-cls.pt, yolov8n.pt and yolov8n-seg.pt by read_model()
![1717814991363](https://private-user-images.githubusercontent.com/128127436/337828302-9581d400-fb0c-4ad7-90ca-cb0e1276904e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk0MDMyODIsIm5iZiI6MTcxOTQwMjk4MiwicGF0aCI6Ii8xMjgxMjc0MzYvMzM3ODI4MzAyLTk1ODFkNDAwLWZiMGMtNGFkNy05MGNhLWNiMGUxMjc2OTA0ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyNlQxMTU2MjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hMDU1YTA5NzQ0YjQ4ZjQ2YTVhNjA5OThjNmNlYzlhZjRhOGQ5ZmM0YTQzZTE4MDUxODE3Y2Y1YjRhOWQwN2MxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.m2PIeTrK8GQuotmexEM7uAw_IKUFkfwhjIbryy-HxUQ)
Step-by-step reproduction
Step 1: set up the environment
Step 2: export yolov8n.pt
Step 3: execute the code
Relevant log output
No response
Issue submission checklist
The text was updated successfully, but these errors were encountered: