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

Perform parameter smoothing #2

Open
HengerLi opened this issue Aug 16, 2021 · 2 comments
Open

Perform parameter smoothing #2

HengerLi opened this issue Aug 16, 2021 · 2 comments

Comments

@HengerLi
Copy link

To perform parameter smoothing, the original smooth_mnist.py requires a default file 'saved_models/model_mnist_Feb.04_15.41.37/params.yaml', which the author may want to share for someone don't want train their own model.
However, when I set the dir to a freshly training model, for example, training_param_fname= 'saved_models/model_mnist_Aug.16_20.42.53/params.yaml'. It leads to the following error:
KeyError Traceback (most recent call last)
in ()
178 helper.params['poison_delta']=training_params['poison_delta']
179 helper.params['poison_pattern']=training_params['poison_pattern']
--> 180 helper.params['poison_label_swap']==training_params['poison_label_swap']
181 helper.params['is_poison']==training_params['is_poison']
182 helper.params['adversary_list']==training_params['adversary_list']

KeyError: 'poison_label_swap'

@AlphaPav
Copy link
Member

Hi @HengerLi
Sorry for the late reply. I just saw your issue. Please add the "poison_label_swap" key in the 'params.yaml' file.
Thanks for reporting the issue and I will update the code soon.

@miku8miku
Copy link

==

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

3 participants