-
Notifications
You must be signed in to change notification settings - Fork 62
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
Input aware dynamic backdoor error #176
Comments
Are you using the most up-to-date code? |
Yes, I think so. I just installed the latest version from GitHub today. |
Just commit a fix. Could you please try whether it works? |
Thanks for the fast response. Yes, that problem its solved now. |
Thanks for your report. The error is raised because of the low poison percent and there might be no poisoning data in a batch. I previously didn't take that into consideration. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!,
I wanted to know if when using the
--attack input_aware_dynamic
I also should provide somemask
parameters. I assume that I don't have to since the trigger should be included throughout the image.I'm running this:
python examples/backdoor_attack.py --color --verbose 1 --dataset cifar100 --model vgg11_bn --attack input_aware_dynamic --save --download --poison_percent 0.001 --epochs 100 --pretrained --output 1 --dataset_normalize --train_mask_epochs 1 --attack_dir res/
But I keep getting this error in /trojanvision/attacks/backdoor/dynamic/input_aware_dynamic.py", line 378, in attack:
UnboundLocalError: local variable 'loss_div' referenced before assignment
Thanks in advance.
The text was updated successfully, but these errors were encountered: