Giter Club home page Giter Club logo

Comments (9)

dsnsabari avatar dsnsabari commented on July 22, 2024 1

@andrei-kochin thank you so much.

from openvino.

mlukasze avatar mlukasze commented on July 22, 2024

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.

dsnsabari avatar dsnsabari commented on July 22, 2024

@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.

mlukasze avatar mlukasze commented on July 22, 2024

thanks for the explanation, our engineers will look at your problem in first possible moment.
we will back to you

from openvino.

andrei-kochin avatar andrei-kochin commented on July 22, 2024

@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.

dsnsabari avatar dsnsabari commented on July 22, 2024

@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.

andrei-kochin avatar andrei-kochin commented on July 22, 2024

@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.

dsnsabari avatar dsnsabari commented on July 22, 2024

@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.

andrei-kochin avatar andrei-kochin commented on July 22, 2024

@dsnsabari new call is the set_property. Please see the doc reference.

Some examples can be found here.

from openvino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.