-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Improve typing and documentation of AdversarialPatchPyTorch #2557
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
Conversation
… detection Signed-off-by: Beat Buesser <[email protected]>
Signed-off-by: Beat Buesser <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev_1.19.1 #2557 +/- ##
==============================================
- Coverage 85.41% 85.41% -0.01%
==============================================
Files 334 334
Lines 31001 31002 +1
Branches 5300 5300
==============================================
Hits 26481 26481
Misses 3053 3053
- Partials 1467 1468 +1
|
Signed-off-by: Beat Buesser <[email protected]>
kieranfraser
left a comment
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 - added one minor suggestion. There is a few legacy tests failing, and codecov not at required mark (but clicking through I noted that not due to this PR changes).
| :param x: An array with the original input images of shape NCHW or input videos of shape NFCHW. | ||
| :param y: An array with the original true labels. | ||
| :param y: The true or target labels. |
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.
A minor suggestion to include format of expected data in the dict (e.g. boxes, scores, labels)? Torchvision models conform to this format, but users who may be more familiar with YOLO may feed targets here that are not in the correct format?
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.
@kieranfraser Thank you, that's a good point!
Signed-off-by: Beat Buesser <[email protected]>
Signed-off-by: Beat Buesser <[email protected]>
Description
This pull request improves the typing and documentation of the
AdversarialPatchPyTorchattack.