OpenBackdoor icon indicating copy to clipboard operation
OpenBackdoor copied to clipboard

Issue with seed

Open himanshubeniwal opened this issue 2 years ago • 1 comments

I think the seed is not working correctly. I just rant the same demo twice, and the results vary for both runs. Same for all the attacks, the ASR and CACC are different for different runs.

Is this the case? or am I missing something?

himanshubeniwal avatar Apr 05 '23 11:04 himanshubeniwal

The seed in the config doesn't work before, so we have removed the key from the config files. Now, you can set seed by running python demo_attack.py --seed SEED and then you will get the same result for different runs.

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