ain-soph / trojanzoo

TrojanZoo provides a universal pytorch platform to conduct security researches (especially backdoor attacks/defenses) of image classification in deep learning.

Home Page:https://ain-soph.github.io/trojanzoo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

badnet folder information

ArshadIram opened this issue · comments

image
I just want to know what this npy file contains?

def save(self, filename: str = None, **kwargs):
r"""Save attack results to files."""
filename = filename or self.get_filename(**kwargs)
file_path = os.path.join(self.folder_path, filename)
np.save(file_path + '.npy', self.mark.mark.detach().cpu().numpy())
F.to_pil_image(self.mark.mark).save(file_path + '.png')
self.model.save(file_path + '.pth')
print('attack results saved at: ', file_path)