-
Notifications
You must be signed in to change notification settings - Fork 705
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
Fix docstrings #22
Fix docstrings #22
Conversation
"""Call when the test begins.""" | ||
"""Call when the test begins. | ||
|
||
Loads the model weights from into the PyTorch module. |
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.
Something's missing between from
and into
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.
file
?
anomalib/core/model/kde.py
Outdated
tensor: torch.Tensor: Input tensor from which covariance matrix is computed. | ||
bias: Optional[bool]: (Default value = False) | ||
tensor (Tensor): Input tensor from which covariance matrix is computed. | ||
bias (Optional[bool]): (Default value = False) |
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.
Can you add a description for this parameter?
"""Pre process the CNN features. | ||
|
||
Args: | ||
feature_stack: Features extracted from CNN | ||
max_length: | ||
feature_stack: torch.Tensor: | ||
feature_stack: Tensor: | ||
max_length: Optional[Tensor]: (Default value = None) |
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.
Descriptions are missing here
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! I missed these.
Few minor comments |
anomalib/models/dfm/dfm_model.py
Outdated
C = U.S^2.U^T | ||
This simplifies the calculation of the log-likelihood without requiring full matrix inversion. | ||
Covariance matrix is not calculated directly using: | ||
C = X.X^T |
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.
maybe we could have these equations within quotes to properly render in the docs
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.
like C = X.X^T
?
anomalib/models/dfm/model.py
Outdated
batch: Dict: Input batch | ||
batch_idx: int: Index of the batch. | ||
batch (List[Dict[str, Any]]): Input batch | ||
_ (int): Index of the batch. |
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.
We could remove this. It'll appear in the documentation, which won't make sense to the reader.
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.
only couple of minor comment
Update metrics and evaluator guide
Changes
Known Issues