hcguoo0 / fia Goto Github PK
View Code? Open in Web Editor NEWcode for "Feature Importance-aware Transferable Adversarial Attacks"
code for "Feature Importance-aware Transferable Adversarial Attacks"
Hi!
Thanks for your contribution! But when I run the command line you mentioned in readme file
"python attack.py --model_name vgg_16 --attack_method FIAPIM --layer_name vgg_16/conv3/conv3_3/Relu --ens 30 --probb 0.7 --amplification_factor 2.5 --gamma 0.5 --Pkern_size 3 --image_size 224 --image_resize 250 --prob 0.7 --output_dir ./adv/FIAPIDIM/"
and "python verify.py --ori_path ./dataset/images/ --adv_path ./adv/FIAPIDIM/ --output_file ./log.csv".
I got adv_acc around 70%-80% and adv_succ around 20%-30%. Is there something wrong with your defulat parameter?
在运行readme里面提到的指令时,仅仅得到20%-30%的准确率,请问是否是默认参数不小心给错了呢?还是什么其他问题?
Hi, thank you for sharing the code! I'm trying to run the attack.py using resnet_v1_152, may I know the parameter setting.
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!
Thanks for sharing the code! I've tried to run attack.py on InceptionV3(using layer InceptionV3/InceptionV3/Mixed_5b/concat), InceptionV4(using layer InceptionV4/InceptionV4/Mixed_6f/concat) and Resnet_v1_50(using layer resnet_v1_50/block4/unit_3/bottleneck_v1/conv2/Relu), but got poor results, so could you please share the EXACT LAYER NAME you used to attack?
According to the published paper, the ImageNet-Compatible dataset is used to conduct experiments. By downloading the above dataset from the website in reference [1], it is strange to find that there are only 904 images can be downloaded, rather than 1000 images illustrated in the paper. Therefore, could you please validate how many images were actually used in the experimental phase? Of course, if all 1000 images were used in your experiments, could you please share these images through Google Clouds or Baidu Clouds (urls of the missed 96 images are invalid now)?
Thanks very much!
Thanks for sharing your code. I'm reading your paper and would like to know how to craft Fig.3.
Hello,Could tell me when inception-resnet-v2 as the source model,what mid layer to be attack,I set the parameter ‘InceptionResnetV2/InceptionResnetV2/Conv2d_4a_3x3/Relu’ that follows your paper Conv_4a. But the permance is lower 10% comparing the result in your paper. So what is the mid parameter when you attack inception-resnet-v2? Thx.
Why your code about PI-FGSM is not the same as the theory in the pape
(0) Data loss: Unable to open table file ./models_tf/ens3_adv_inception_v3/ens3_adv_inception_v3.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator?
the model i use is ens3_adv_incetption_v3, Could you reply me?
使用Inceptionv3模型的中间层参数: InceptionV3/InceptionV3/Mixed_5b/concat
运行会报错
tensorflow.python.framework.errors_impl.NotFoundError: Tensor name "InceptionV3/AuxLogits/Conv2d_2a_3x3/BatchNorm/beta" not found in checkpoint files ./models_tf/inception_v3.ckpt
[[{{node save/RestoreV2}} = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]
Hi,
I met problems when attacking incepionv3 and inception resnetv2 model:
Traceback (most recent call last):
File "/home/eric/anaconda3/envs/tf12/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1334, in _do_call
return fn(*args)
File "/home/eric/anaconda3/envs/tf12/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1319, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "/home/eric/anaconda3/envs/tf12/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1407, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.NotFoundError: Tensor name "InceptionV3/AuxLogits/Conv2d_2a_3x3/BatchNorm/beta" not found in checkpo
int files ./models_tf/inception_v3.ckpt
[[{{node save/RestoreV2}} = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT,
DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV
2/shape_and_slices)]]
And it seems to be related to this: cameronfabbri/Compute-Features#2
Could you please check it and tell me how to fix this? Thank you!
Can you tell me how to run the FIA+PITIDIM.I want to verify the data if the Table. 2.Thanks very much!
Hello, I'd like to ask if you have the version code reference of pytorch
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.