You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "./attack/laser_attack.py", line 347, in <module>
main()
File "./attack/laser_attack.py", line 212, in main
adv_train_ds = prepro_cls_DatasetBD(
File "./backdoorbench/attack/../utils/bd_dataset.py", line 63, in __init__
assert len(poison_idx) == len(full_dataset_without_transform)
AssertionError
Did I do something wrong? Looking forward to your reply.
The text was updated successfully, but these errors were encountered:
I am sorry to say that, for the all-to-all attack, we only have done the basic implementation early in the bd_attack_generate.py file. We haven't done a comprehensive compatibility test for every attack method. So you may meet a problem with some attack methods.
I tried your setting in the blended attack. What I have done is replace the corresponding hyper-parameters in the YAML file. But I do not meet your problem. And I see that in your traceback information, it shows you are using the "./attack/laser_attack.py" script, so I am not sure how the problem comes. If you can offer more about your script, I can help you more.
Many thanks for your excellent work! 😁
Now I have a question. When I used the following setting in Blended Attack.
But I ran into the following error.
Did I do something wrong? Looking forward to your reply.
The text was updated successfully, but these errors were encountered: