Skip to content

adding on-the-fly patching images for backdoor attacks #1881

Answered by rwightman
Oklahomawhore asked this question in Q&A
Discussion options

You must be logged in to vote

after transforms, before model could be hacked in here in the train loop https://github.com/huggingface/pytorch-image-models/blob/main/train.py#L896

If you need something in the middle of the transforms (after resize, rand-aug but before say normalize) you'd need to inject into the transforms at the end of secondary/start of final transform lists https://github.com/huggingface/pytorch-image-models/blob/main/timm/data/transforms_factory.py#L114-L116

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Oklahomawhore
Comment options

Answer selected by Oklahomawhore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants