We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I encountered errors when using MultiAttack. Here is my code segment:
MultiAttack
# cifar100_eval_loader = ... (initialize my dataloader) eps = 8 / 255 alpha = 2 / 255 atk1 = TIFGSM(srcnet, eps=eps, alpha=alpha, steps=40) atk2 = DIFGSM(srcnet, eps=eps, alpha=alpha, steps=40) atk = MultiAttack([atk1, atk2]) atk.set_return_type('int') # Save as integer. atk.save(data_loader=cifar100_eval_loader, save_path=save_path, verbose=True)
However, the following error messages occurs:
- Save complete! Traceback (most recent call last): File "/tmp2/attack/src/adv_attack.py", line 162, in <module> atk.save(data_loader=cifar100_eval_loader, save_path=save_path, verbose=True) File "/home/tsunghan/miniconda3/envs/SPML/lib/python3.9/site-packages/torchattacks/attacks/multiattack.py", line 105, in save rob_acc, l2, elapsed_time = super().save(data_loader, save_path, verbose, return_verbose) TypeError: cannot unpack non-iterable NoneType object
I wonder that whether the MultiAttack.save() method contains bugs? Thanks!
MultiAttack.save()
The text was updated successfully, but these errors were encountered:
return_verbose=False raises the problem in version 3.2.0. Bug fixed in version 3.2.2. Thanks!
return_verbose=False
Sorry, something went wrong.
No branches or pull requests
Hi,
I encountered errors when using
MultiAttack
.Here is my code segment:
However, the following error messages occurs:
I wonder that whether the
MultiAttack.save()
method contains bugs?Thanks!
The text was updated successfully, but these errors were encountered: