Closed jS5t3r closed 10 months ago
您好,您的邮件已收到!
I just add this notebook to the issues: https://colab.research.google.com/drive/1uZrW3Sg-t5k6QVEwXDdjTSxWpiwPGPm2?usp=sharing
Hi,
as far as I understand, according to this, PyTorchModel
is a wrapper which performs pre-processing and then a forward pass of the original model. It seems a more general version of the solution in https://github.com/fra31/auto-attack/issues/13, so it should be fine. It also appears to work in your example in the notebook (unless you meant to show something else with it).
Ok. Thanks. Yes, I just wanted to proof it via my notebook. I am going to close this question.
Can I use this
fmodel
for preprocessing/normalization from DeepFool? (source: https://github.com/bethgelab/foolbox/blob/12abe74e2f1ec79edb759454458ad8dd9ce84939/examples/multiple_attacks_pytorch_resnet18.py#L13) So that the model the input for the model is normalized? I have seen some other threads where I have to change the model like https://github.com/fra31/auto-attack/issues/53, but I want to avoid this.https://colab.research.google.com/drive/1uZrW3Sg-t5k6QVEwXDdjTSxWpiwPGPm2?usp=sharing