Comments (9)
@andrei-kochin thank you so much.
from openvino.
thanks for letting us know
Could you share a model?
Could you try 2024.2 version to compare behavior?
Are you trying to import pytorch model (as report states), or converted to ONNX (by the code)?
cc/ @AKochin
from openvino.
@mlukasze , Could you kindly review the issue description thoroughly?
Please find the model attached: yolov10n_openvino_model.zip. I am attempting to infer the OpenVINO model but am encountering an issue with version 2024.2.
Thank you for your assistance.
from openvino.
thanks for the explanation, our engineers will look at your problem in first possible moment.
we will back to you
from openvino.
@dsnsabari according to the code snippet provided and to the error you see you are trying to feed the read_model call the directory instaead of the IR *.xml file which is not expected. Was this code really working fine with 22.3?
from openvino.
@andrei-kochin , I am not using this code to read the model in the 22.3 version. Could you share the sample script for serving the open vino model in the latest package?
from openvino.
@dsnsabari I'm not the expert in serving but I definitely can say that your code for the read_model should look like this to work:
converted_model_path = "./yolov8n_openvino_model/yolov8n.xml"
# Read the network and corresponding weights from a file.
model = core.read_model(model=converted_model_path)
Or you even can skip read_model and feed it directly to the compile_model():
converted_model_path = "./yolov8n_openvino_model/yolov8n.xml"
# Compile the model for CPU (you can choose manually CPU, GPU etc.)
# or let the engine choose the best available device (AUTO).
compiled_model = core.compile_model(model=converted_model_path, device_name=device.value)
from openvino.
@andrei-kochin , Thank you so much. I want to set the config parameters below while initializing the model. "AttributeError: 'Core' object has no attribute 'set_config'"
Old openvino serving code :
from inference_engine import IECore
# Configure device
ie = IECore()
config = {"CPU_THREADS_NUM": "2", "CPU_BIND_THREAD": "YES"}
ie.set_config(config, "CPU") # Replace "CPU" with your target device
# Load network and perform inference
# ... (Your inference code here)
Please help me config the parameters for the new openvino:
core = ov.Core()
#config = {"CPU_THREADS_NUM": "2", "CPU_BIND_THREAD": "YES"}
core.set_config({"CPU_THREADS_NUM": "2", "CPU_BIND_THREAD": "YES"}, "CPU")
from openvino.
@dsnsabari new call is the set_property. Please see the doc reference.
Some examples can be found here.
from openvino.
Related Issues (20)
- [Bug]: Unable detect gpu in zabbly kernel 6.9.6 HOT 1
- [Good First Issue]: Extend Python API with `ROIAlignRotated-15` HOT 2
- [Bug]: Accuracy issue on various CPU platforms with MobileNetV3-Large and ShuffleNetV2-x0.5 HOT 17
- [Bug]: Not able to load TensorFlow model on OpenVino model server HOT 2
- [Build]: Cannot install on AWS ARM compute instance HOT 4
- [Bug]: Deploying OPENVINO models for inference on AWS Lambda fails HOT 2
- [Bug]: [NPU]Loading the model to the device failed due to unsupported driver HOT 1
- [Good First Issue]: Enable Model.clone() method HOT 2
- [Good First Issue]: Enable Model.getOps() method HOT 2
- [Good First Issue]: Enable Model.getOutputElementType(idx) HOT 2
- [Bug]: Manual Heterogeneous configuration incorrectly changing the shape HOT 3
- [Build]: cannot build OpenVINO with Clang HOT 4
- How to run openvino on a single thread? HOT 4
- [Bug]: Inference fails if data is moved to GPU HOT 6
- [Bug]: use igpu in nuc, yolov10 output is weird HOT 9
- misplaced double quote (") causing batch file error HOT 2
- [Bug]: GPU fails at OpenCL online compilation time (at least) for tiny-llama-1b-chat/INT4_compressed_weights
- He is HOT 1
- [Bug]: OpenVINO as backend to Pytorch - integrated GPU works but discreet GPU gives NANs
- Unsupported layer type "ScatterNDUpdate HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvino.