ain-soph / trojanzoo

TrojanZoo provides a universal pytorch platform to conduct security researches (especially backdoor attacks/defenses) of image classification in deep learning.
https://ain-soph.github.io/trojanzoo
GNU General Public License v3.0
274 stars 62 forks source link

strange mark saved #186

Closed andyclsr closed 1 year ago

andyclsr commented 1 year ago

image the picture above is the mark saved and left are the saved filename. Apparently, it should be a white square but with this strange thing what happened? below is the setting image

ain-soph commented 1 year ago

mark_random_init in mark instance will set all pixels as random values. Please read the docs carefully.

And it seems you are using an old version of trojanzoo (the argument name is random_init instead of mark_random_init)

https://github.com/ain-soph/trojanzoo/blob/58d309b399024be62782b285e7cc8cede147bbc8/trojanvision/marks/__init__.py#L164

https://ain-soph.github.io/trojanzoo/trojanvision/marks.html#trojanvision.marks.Watermark

andyclsr commented 1 year ago

thank you for generous explanations ! this is really my mislook :( wish you a great day!