Closed programehr closed 2 years ago
It's unnecessary because the model saved by previous attack is loaded. You can just remove --pretrained
in your command.
I'll consider removing it to make things clean.
You may close this issue if you have no further concern.
Thank you. I'll close it.
It's unnecessary because the model saved by previous attack is loaded. You can just remove
--pretrained
in your command.I'll consider removing it to make things clean.
You may close this issue if you have no further concern.
Hello again,
Excuse me, but I think it does have an effect. It loads the (possibly trojaned) model only if you specify the pre-train option. Otherwise, it will create a model from scratch.
Am I right?
No, --pretrained
loads the clean pretrained model at model initialization, while defense.detect
loads the previously saved attack result model.
if --original
is claimed, then defense.detect
will not load the attack model.
I’ll close this issue if there is no further question,
Hi, What's the use of pre-train in defense, please?
Thanks.
https://github.com/ain-soph/trojanzoo/blob/caad6edeaefa9cf0f9f3018454dc367df6494ec4/examples/backdoor_defense.py#L3