-
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 model implementations #225
Conversation
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! Only a few minor comments
@@ -0,0 +1,130 @@ | |||
"""PyTorch model for CFlow model implementation.""" | |||
|
|||
# Copyright (C) 2020 Intel Corporation |
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.
Minor issue but should be be updating the dates? Is there a standard practice for this?
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.
Hmm yes. But I guess we should do this for all files, so let's address it in a separate PR
@@ -0,0 +1,97 @@ | |||
dataset: |
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.
Is this file an unintended commit?
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.
yep
@@ -25,7 +25,7 @@ | |||
|
|||
# TODO(AlexanderDokuchaev): Workaround of wrapping by NNCF. | |||
# Can't not wrap `spatial_softmax2d` if use import_module. | |||
from anomalib.models.padim.model import PadimLightning # noqa: F401 | |||
from anomalib.models.padim.lightning_model import PadimLightning # noqa: F401 |
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.
Is this import needed?
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.
This was added by Alexander. I think it's needed for NNCF support
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.
yeah looks like it. But I don't understand how/why it's needed. It is not used anywhere
Description
torch_model
,lightning_model
andanomaly_map
. #211Changes
Checklist