OpenBackdoor icon indicating copy to clipboard operation
OpenBackdoor copied to clipboard

Issue with Neuba config file

Open himanshubeniwal opened this issue 1 year ago • 2 comments

Upon running the python demo_attack.py --config_path /configs/neuba_config.json, there's the following error:

File "demo_attack.py", line 61, in <module>
    main(config)
  File "demo_attack.py", line 42, in main
    backdoored_model = attacker.attack(victim, poison_dataset)
  File "/attackers/neuba_attacker.py", line 36, in attack
    victim_config = config["victim"]
TypeError: 'NoneType' object is not subscriptable

himanshubeniwal avatar Apr 10 '23 05:04 himanshubeniwal

Same with configs/por_config.json;

File "demo_attack.py", line 61, in <module>
    main(config)
  File "demo_attack.py", line 42, in main
    backdoored_model = attacker.attack(victim, poison_dataset)
  File "/attackers/por_attacker.py", line 37, in attack
    victim_config = config["victim"]
TypeError: 'NoneType' object is not subscriptable

himanshubeniwal avatar Apr 10 '23 05:04 himanshubeniwal

Thanks for pointing that out. We have fixed the bug.

lifan-yuan avatar Apr 10 '23 16:04 lifan-yuan