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

Remove dependency on OTX #393

Merged
merged 6 commits into from
Apr 25, 2024
Merged

Conversation

igor-davidyuk
Copy link
Contributor

@igor-davidyuk igor-davidyuk commented Apr 18, 2024

  • Removed label converters
  • Removed prediction converters
  • Removed from dependencies

This PR handles OTX removal, which makes it impossible to perform inference with deployments generated by Platforms of versions older than 1.15 (OTX 1.4.x and older)

@igor-davidyuk igor-davidyuk requested a review from ljcornel April 18, 2024 11:27
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
@igor-davidyuk igor-davidyuk force-pushed the idavidyu/remove-otx-dependency branch from 6302563 to 29f5137 Compare April 24, 2024 07:26
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
@@ -426,31 +425,12 @@ def generate_ovms_config(self, output_folder: Union[str, os.PathLike]) -> None:
ovms_model_dir = os.path.join(ovms_models_dir, model_name, model_version)
source_model_dir = model.model_data_path

if otx.__version__ >= "1.4.0":
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should not be removed I believe, it applies for otx versions 1.4 and up. It's function is to embed the preprocessing in the model graph, and save the updated model.
This is required, otherwise once the model is loaded into OVMS it will not be able to handle the input that we send to it later on.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wow, I probably removed the wrong logical branch, good catch!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed now

Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
@igor-davidyuk igor-davidyuk merged commit ebcb43d into main Apr 25, 2024
10 checks passed
@igor-davidyuk igor-davidyuk deleted the idavidyu/remove-otx-dependency branch April 25, 2024 09:50
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 this pull request may close these issues.

2 participants