New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is something wrong when i run the program。 #8
Comments
Do you use InceptionResnetV2/AuxLogits/Conv2d_2a_5x5/Conv2D and InceptionV3/AuxLogits/Conv2d_2a_3x3/BatchNorm/beta as the layer_name parameter? |
I used InceptionResnetV2/InceptionResnetV2/Conv2d_4a_3x3/Relu for IncRes_v2 and InceptionV3/InceptionV3/Mixed_5b/concat for Inc-v3 ,but i just used the InceptionResnetV2/AuxLogits/Conv2d_2a_5x5/Conv2D and InceptionV3/AuxLogits/Conv2d_2a_3x3/BatchNorm/beta as the layer_name parameter,it still some errors,for Inc-v3:Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): And for InceptionResnetV2:
|
So did it occour these errors when you use InceptionResnetV2/InceptionResnetV2/Conv2d_4a_3x3/Relu for IncRes_v2 and InceptionV3/InceptionV3/Mixed_5b/concat for Inc-v3? |
yes,it did. |
Have you changed the code? |
No,I haven't
…---Original---
From: "Hengchang ***@***.***>
Date: 2021/12/11 18:57:52
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [hcguoO0/FIA] There is something wrong when i run the program。 (Issue #8)
Have you changed the code?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
I download the code and run python attack.py --model_name inception_v3 --attack_method FIA --layer_name InceptionV3/InceptionV3/Mixed_5b/concat --output_dir ./adv/fia/ --image_size 299 --ens 30 --probb 0.7 and it does not occur any errors |
Okay,i tried it again,and it works.Thank you very much! |
i just forget the " --image_size 299" when running the "attack.py", then the same error occured. |
Hello,thank you very much for sharing the program.But when i run the attack.py on IncRes_V2 and Inc_v3,there is something wrong with the program.With the IncRes_V2,there is an error:ValueError: Negative dimension size caused by subtracting 5 from 3 for 'InceptionResnetV2/AuxLogits/Conv2d_2a_5x5/Conv2D' (op: 'Conv2D') with input shapes: [40,3,3,128], [5,5,128,768].And with the Inc_v3,there is an error:Tensor name "InceptionV3/AuxLogits/Conv2d_2a_3x3/BatchNorm/beta" not found in checkpoint files ./models_tf/inception_v3.ckpt
[[node save/RestoreV2 (defined at attack.py:267) ]]
Can you tell me what's wrong? Thank you very much!
The text was updated successfully, but these errors were encountered: