-
Notifications
You must be signed in to change notification settings - Fork 709
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
Refactor strings and ints into enum.Enum #1044
Refactor strings and ints into enum.Enum #1044
Conversation
0590181
to
c57e367
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your efforts! I have a few comments.
7e06445
to
fd17d2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @WenjingKangIntel. I've got few comments.
fd17d2f
to
de1c570
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @WenjingKangIntel!
I've just noticed one discrepancy between the new Enums as shown below:
LabelName.ANOMALOUS
vs DirType.ABNORMAL
. It would be good to have consistent naming for these Enums. I also checked the library where we use anomalous
and abnormal
interchangibly. We will probably need to change that in the future.
It might be an idea to change LabelName.ANOMALOUS
to LabelName.ABNORMAL
. What do you think?
de1c570
to
bfa4e1d
Compare
bfa4e1d
to
644cb33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks a lot!
This tries to refactor strings and ints into enum.Enum adding: 1. LabelName 2. DirType 3. DataFormat 4. AnomalyMapGenerationMode 5. ImageUpscaleMode 6. VisualizationMode Fixes openvinotoolkit#644 Signed-off-by: FanJiangIntel <[email protected]> Signed-off-by: Kang Wenjing <[email protected]>
644cb33
to
c0ac77e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again
)" This reverts commit 2661177.
Description
Provide a summary of the modification as well as the issue that has been resolved. List any dependencies that this modification necessitates.
Code refactor: add the following types to replace original string constants.
Fixes [refactor]
enum.Enum
vs. strings and ints #644Changes
Checklist