Git Product home page Git Product logo

Comments (9)

Wovchena avatar Wovchena commented on May 29, 2024

Why do you use that much / in paths: /home///..., /home////...? That's probably the reason for the error

from open_model_zoo.

NeethuES-intel avatar NeethuES-intel commented on May 29, 2024

those were my machine credentials, i deleted them, since I don't wan them out in public :-)
paths are all correct

from open_model_zoo.

Wovchena avatar Wovchena commented on May 29, 2024

I see only two possible reasons:

  1. There's version mismatch between mo and OpenVINO Runtime. Run mo --version and compare that to what the demo prints.
  2. File path is incorrect. You can try running python3 -c "import openvino.runtime as ov; ov.Core().read_model('XML_PATH')" to make sure there's nothing in demo itself causing the problem.
    BTW, the usual path is public/aclnet/FP16/aclnet.xml maybe you miss FP16.

from open_model_zoo.

NeethuES-intel avatar NeethuES-intel commented on May 29, 2024

Thank you. It was version mismatch, but now I am getting a different error. Any pointers ?
[ INFO ] OpenVINO Runtime
[ INFO ] build: 2023.0.1-11005-fa1c41994f3-releases/2023/0
[ INFO ] Reading model /home////public/aclnet/aclnet_des_53.xml
Traceback (most recent call last):
File "sound_classification_demo.py", line 193, in
main()
File "sound_classification_demo.py", line 151, in main
batch_size, channels, one, length = model.inputs[0].shape
ValueError: get_shape was called on a descriptor::Tensor with dynamic shape

from open_model_zoo.

NeethuES-intel avatar NeethuES-intel commented on May 29, 2024

Both mo & openvino runtime have the same versions. I generated the IR by running the mo command - mo --input_model aclnet_des_53.onnx

[ INFO ] OpenVINO Runtime
[ INFO ] build: 2023.0.1-11005-fa1c41994f3-releases/2023/0

mo --version
Version of Model Optimizer is: 2023.0.1-11005-fa1c41994f3-releases/2023/0

from open_model_zoo.

Wovchena avatar Wovchena commented on May 29, 2024

The demo supports static shapes only.

One option is to update the demo to support dynamic shapes. But I'm not going to help here.

Another option is to set shapes to be static at mo stage. Regenerate IR by running mo --input_model aclnet_des_53.onnx --input_shape=[1,1,1,16000]. Assuming your aclnet_des_53.onnx is similar to one we have in https://github.com/openvinotoolkit/open_model_zoo/blob/f08b9b080b240b4abd08830542ef532deeaf1da3/models/public/aclnet/model.yml#L33C2-L33C2

from open_model_zoo.

NeethuES-intel avatar NeethuES-intel commented on May 29, 2024

I now get a channel issue. Any suggestions on where I can get the sample audio from openvino repo? I got this input audio from google.

[ INFO ] 	build: 2023.0.1-11005-fa1c41994f3-releases/2023/0
[ INFO ] Reading model /home////public/aclnet/aclnet_des_53.xml
[ INFO ] The model /home////public/aclnet/aclnet_des_53.xml is loaded to CPU
Traceback (most recent call last):
  File "sound_classification_demo.py", line 193, in <module>
    main()
  File "sound_classification_demo.py", line 171, in main
    audio = AudioSource(args.input, channels=channels, samplerate=args.sample_rate)
  File "sound_classification_demo.py", line 67, in __init__
    raise RuntimeError("Audio has unsupported number of channels - {} (expected {})"
RuntimeError: Audio has unsupported number of channels - 2 (expected 1)

from open_model_zoo.

Wovchena avatar Wovchena commented on May 29, 2024

https://storage.openvinotoolkit.org/models_contrib/speech/2021.2/librispeech_s5/how_are_you_doing_today.wav

from open_model_zoo.

NeethuES-intel avatar NeethuES-intel commented on May 29, 2024

Thank a lot @Wovchena. Demo worked :-)

from open_model_zoo.

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.