Skip to content

Commit 9c69398

Browse files
committed
update bad det demo notebook
Signed-off-by: Farhan Ahmed <[email protected]>
1 parent a4f403c commit 9c69398

File tree

2 files changed

+109
-135
lines changed

2 files changed

+109
-135
lines changed

art/attacks/poisoning/bad_det/bad_det_gma.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def poison( # pylint: disable=W0221
129129
# insert backdoor into the image
130130
# add an additional dimension to create a batch of size 1
131131
poisoned_input, _ = self.backdoor.poison(image[np.newaxis], labels)
132-
x_poison[i] = poisoned_input[0]
132+
image = poisoned_input[0]
133133

134134
# replace the original image with the poisoned image
135135
if self.channels_first:

notebooks/poisoning_attack_bad_det.ipynb

Lines changed: 108 additions & 134 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)