Skip to content
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

Issue with Neuba config file #18

Open
himanshubeniwal opened this issue Apr 10, 2023 · 2 comments
Open

Issue with Neuba config file #18

himanshubeniwal opened this issue Apr 10, 2023 · 2 comments

Comments

@himanshubeniwal
Copy link

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
Copy link
Author

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

@lifan-yuan
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants