ebagdasa / backdoors101

Backdoors Framework for Deep Learning and Federated Learning. A light-weight tool to conduct your research on backdoors.
MIT License
335 stars 82 forks source link

"Cifar is downloaded using PyTorch": Is there a way to insert own image into the Cifar10 dataset? #13

Closed michaelTJC96 closed 3 years ago

michaelTJC96 commented 3 years ago

Cifar is downloaded using PyTorch

Originally posted by @ebagdasa in https://github.com/ebagdasa/backdoors101/issues/12#issuecomment-881079353

Hi there, I was wondering if there is a way to insert my own image into the dataset? As I am performing an image-scaling attack. Otherwise, will imagenet work instead?

ebagdasa commented 3 years ago

Yeah, you can do it during synthesizer pass, e.g. just replace the image.

michaelTJC96 commented 3 years ago

Hi sorry, what do you mean by synthesizer pass? Where do I replace the image?

ebagdasa commented 3 years ago

Check the pixel synthesizer, when it synthesizes new inputs, you can just replace the images.