Skip to content

Conversation

@tybulewicz
Copy link
Contributor

@tybulewicz tybulewicz commented Jan 19, 2026

What does this PR do?

This PR enables the use of ModelAPI with generic OpenVINO models that lack embedded metadata by allowing users to provide required metadata through the configuration parameter. The change allows model_type and other preprocessing/postprocessing parameters to be supplied externally when models don't have rt_info/model_info fields.

Changes:

  • Added fallback to use configuration["model_type"] when metadata is missing from the model
  • Propagated configuration parameter through test infrastructure
  • Added test case for model without embedded metadata

Fixes #471

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@tybulewicz tybulewicz requested a review from Copilot January 19, 2026 11:41
@github-actions github-actions bot added tests Related to tests python python related changes docs Related to documentation labels Jan 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables the use of ModelAPI with generic OpenVINO models that lack embedded metadata by allowing users to provide required metadata through the configuration parameter. The change allows model_type and other preprocessing/postprocessing parameters to be supplied externally when models don't have rt_info/model_info fields.

Changes:

  • Added fallback to use configuration["model_type"] when metadata is missing from the model
  • Propagated configuration parameter through test infrastructure
  • Added test case for model without embedded metadata

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/model_api/models/model.py Modified to use configuration-provided model_type as fallback when rt_info is unavailable
tests/accuracy/test_accuracy.py Added configuration parameter support throughout the test infrastructure
tests/accuracy/public_scope.json Added test case for model without embedded model_info metadata
README.md Added documentation example showing how to use configuration parameter with generic models

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tybulewicz tybulewicz marked this pull request as ready for review January 19, 2026 12:19
@tybulewicz tybulewicz requested a review from a team as a code owner January 19, 2026 12:19
@tybulewicz tybulewicz enabled auto-merge January 19, 2026 12:49
mgumowsk
mgumowsk previously approved these changes Jan 19, 2026
@tybulewicz tybulewicz added this pull request to the merge queue Jan 20, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 20, 2026
@tybulewicz tybulewicz added this pull request to the merge queue Jan 20, 2026
Merged via the queue into master with commit 98a850e Jan 20, 2026
34 of 36 checks passed
@tybulewicz tybulewicz deleted the ttybulew/add_model_info branch January 20, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Related to documentation python python related changes tests Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for models without model_info

3 participants