Skip to content

Comments

Improve typing and documentation of AdversarialPatchPyTorch#2557

Merged
beat-buesser merged 6 commits intodev_1.19.1from
development_typing_docs
Jan 21, 2025
Merged

Improve typing and documentation of AdversarialPatchPyTorch#2557
beat-buesser merged 6 commits intodev_1.19.1from
development_typing_docs

Conversation

@beat-buesser
Copy link
Collaborator

Description

This pull request improves the typing and documentation of the AdversarialPatchPyTorch attack.

… detection

Signed-off-by: Beat Buesser <beat.buesser@ibm.com>
Signed-off-by: Beat Buesser <beat.buesser@ibm.com>
@beat-buesser beat-buesser self-assigned this Jan 16, 2025
@beat-buesser beat-buesser added documentation Documentation updates improvement Improve implementation labels Jan 16, 2025
@beat-buesser beat-buesser added this to the ART 1.19.1 milestone Jan 16, 2025
@codecov
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.41%. Comparing base (d3280eb) to head (a9b698e).
Report is 7 commits behind head on dev_1.19.1.

Additional details and impacted files

Impacted file tree graph

@@              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     
Files with missing lines Coverage Δ
...ion/adversarial_patch/adversarial_patch_pytorch.py 76.11% <100.00%> (-0.25%) ⬇️

Signed-off-by: Beat Buesser <beat.buesser@ibm.com>
Copy link
Collaborator

@kieranfraser kieranfraser left a 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.
Copy link
Collaborator

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?

Copy link
Collaborator Author

@beat-buesser beat-buesser Jan 20, 2025

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!

beat-buesser and others added 3 commits January 20, 2025 11:19
Signed-off-by: Beat Buesser <beat.buesser@ibm.com>
Signed-off-by: Beat Buesser <beat.buesser@ibm.com>
@beat-buesser beat-buesser merged commit e20d091 into dev_1.19.1 Jan 21, 2025
61 checks passed
@beat-buesser beat-buesser deleted the development_typing_docs branch January 21, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation updates improvement Improve implementation

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants