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

Create own python class for every model for action cls, det, and classification tasks #2776

Conversation

vinnamkim
Copy link
Contributor

Summary

  • Same as title. Other tasks will be resolved in the following PR.

How to test

Checklist

  • I have added unit tests to cover my changes.​
  • I have added integration tests to cover my changes.​
  • I have added e2e tests for validation.
  • I have added the description of my changes into CHANGELOG in my target branch (e.g., CHANGELOG in develop).​
  • I have updated the documentation in my target branch accordingly (e.g., documentation in develop).
  • I have linked related issues.

License

  • I submit my code changes under the same Apache License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below).
# Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
@github-actions github-actions bot added TEST Any changes in tests OTX 2.0 labels Jan 11, 2024
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
…ss-for-every-model-2

Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
@vinnamkim vinnamkim force-pushed the create-own-python-class-for-every-model-2 branch from 8db6f45 to 9dfaa94 Compare January 11, 2024 10:54
@vinnamkim vinnamkim marked this pull request as ready for review January 11, 2024 10:58
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
Copy link
Contributor

@samet-akcay samet-akcay left a comment

Choose a reason for hiding this comment

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

thanks for the effort!

Overall, it is a good step towards having an api-level definition for the models. However, this is still heavily rely on an external configuration file, which is hard to modify from API.

In addition to this, I've got some minor comments.

As we move on, I think we should make this more API friendly by avoiding config dependency

src/otx/algo/action_classification/__init__.py Outdated Show resolved Hide resolved
src/otx/algo/action_classification/x3d.py Show resolved Hide resolved
src/otx/algo/action_detection/x3d_fastrcnn.py Show resolved Hide resolved
src/otx/algo/utils/mmconfig.py Outdated Show resolved Hide resolved
src/otx/algo/utils/mmconfig.py Outdated Show resolved Hide resolved
src/otx/algo/utils/mmconfig.py Outdated Show resolved Hide resolved
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
@vinnamkim vinnamkim requested a review from samet-akcay January 12, 2024 10:21
Copy link
Contributor

@sungmanc sungmanc left a comment

Choose a reason for hiding this comment

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

Thanks for the change. LGTM

@vinnamkim vinnamkim enabled auto-merge (squash) January 16, 2024 10:02
@vinnamkim
Copy link
Contributor Author

@samet-akcay
Do you have any concern more?

@samet-akcay
Copy link
Contributor

@samet-akcay Do you have any concern more?

The remaining comments are for future reference.

Sorry, forgot to approve this one :)

@vinnamkim vinnamkim merged commit cc0c49d into openvinotoolkit:v2 Jan 16, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TEST Any changes in tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants