Giter VIP home page Giter VIP logo

si-adv's People

Contributors

shikiw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

si-adv's Issues

Output is 1/2 points of Input?

i ran this command
python main.py --transfer_attack_method ifgm_ours

I would like visualize the before and after the results of the point cloud attack,
inside the class function

def run(self, points, target):
# i added a code to save the input, after the adversarial attack, save the output

but i am noticing the number of points of the output reduced to 1/2 of the input

how can i get it the number of output points to be the same as the number of input points?

this picture show the input on the left and output on the right
vis

How to implement defense

Thanks for your great work! I'm a little bit confused about the attack pipeline.

I notice that you put the defense_head(e.g., sor) inside the attack iterations by:

if not self.defense_method is None:
    logits = self.classifier(self.pre_head(inputs.detach()))
else:
    logits = self.classifier(inputs.detach()) # [1, num_class]

However, in the implementation of IF-Defense, they do not put the sor in the attack iterations to generate adversarial points. I think your setting simulates where the attacker gets full information of the model AND the defense methods while the IF-Defense assume the attack only knows the model but does not know the defense methods.

I also tried the 2nd setting (e.g., do not use defense_head in the attack iterations) and found the ASR of SI-Adv largely decreased. I'm wondering which setting is more valid.

Just as the author of IF-Defense mentioned in Wuziyi616/IF-Defense#12, I think the sor defense is also non-differentiable, so can we plug it into the attack iterations?

RuntimeError: CUDA error: no kernel image is available for execution on the device

Hello, I have completed the construction of the conda environment according to the environment.yml you gave, but when I use "python main.py --transfer_attack_method ifgm_ours" to train, the error "RuntimeError: CUDA error: no kernel image is available for execution on the device", how do I solve this problem? (Is my pytorch version too high?)

Why does replacing the dataset with ShapeNetPart report an error as follows.

Why does replacing the dataset in command
‘python main.py
--dataset ModelNet40
--data_path /your/path/to/dataset/
--transfer_attack_method ifgm_ours
--surrogate_model pointnet_cls
--target_model pointnet_cls
--step_size 0.007
--max_steps 50
--eps 0.16’
with ShapeNetPart report an error as follows:
‘UnboundLocalError: local variable 'batch_id' referenced before assignment’?Looking forward to your response, thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.