Skip to content
New issue

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

[Bug]: OpenVINOInferencer.init() got an unexpected keyword argument 'metadata_path' #1489

Closed
1 task done
nothk opened this issue Nov 20, 2023 · 5 comments · Fixed by #1630
Closed
1 task done

[Bug]: OpenVINOInferencer.init() got an unexpected keyword argument 'metadata_path' #1489

nothk opened this issue Nov 20, 2023 · 5 comments · Fixed by #1630
Assignees

Comments

@nothk
Copy link

nothk commented Nov 20, 2023

Describe the bug

https://github.com/openvinotoolkit/anomalib/blob/main/notebooks/500_use_cases/501_dobot/501a_training_a_model_with_cubes_from_a_robotic_arm.ipynb

Load the OpenVINO Model

inferencer = OpenVINOInferencer(
path=openvino_model_path, # Path to the OpenVINO IR model.
metadata_path=metadata_path, # Path to the metadata file.
device="CPU", # We would like to run it on an Intel CPU.
)

when I run this code, I get error:
TypeError: OpenVINOInferencer.init() got an unexpected keyword argument 'metadata_path'

then I edit code:
metadata_path=metadata_path -> metadata=metadata_path

inferencer = OpenVINOInferencer(
path=openvino_model_path, # Path to the OpenVINO IR model.
metadata=metadata_path, # Path to the metadata file.
device="CPU", # We would like to run it on an Intel CPU.
)

Dataset

N/A

Model

N/A

Steps to reproduce the behavior

NA

OS information

NA

Expected behavior

NA

Screenshots

No response

Pip/GitHub

GitHub

What version/branch did you use?

No response

Configuration YAML

NA

Logs

NA

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nothk nothk changed the title [Bug]: [Bug]: OpenVINOInferencer.init() got an unexpected keyword argument 'metadata_path' Nov 20, 2023
@blaz-r
Copy link
Contributor

blaz-r commented Nov 21, 2023

Hello. Thanks for reporting, metadata_path was indeed renamed to metadata.

@samet-akcay
Copy link
Contributor

@adrianboguszewski, will you be able to check this out when you work on anomalib stuff

@blaz-r
Copy link
Contributor

blaz-r commented Jan 10, 2024

This just needs to be changed from metadata_path to metadata I believe. It wasn't in some cases like notebooks 501. Hope that helps.

@adrianboguszewski
Copy link
Contributor

@samet-akcay I'll verify all notebooks on Friday :)

@samet-akcay
Copy link
Contributor

great thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants