Code Monkey home page Code Monkey logo

advhat's People

Contributors

cclauss avatar fatheral avatar papermsucode avatar polkach 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

advhat's Issues

Problems with experimental results

When I used your code to experiment with my own photos, I printed out the stickers and pasted them on the hat. After taking photos again, the final similarity was 0.6, which was still very high. Is it just because of the problem with my printer? Or something else?

tf models of r50 r34 mobileface

Can you provide tf models of r50 r34 and mobileface? I try to change from mxnet models in mobile-ZOO you provide to tf models. But I can't gain tf-models having same nodes and names of nodes with yours.

attack.py cannot reshape array of size 12544 into shape (1,3,112,112)

l try to use attack.py to prepare face attack. l followed you steps and when trying to use anchor_face .it shows me that File "attack.py", line 24, in prep
return np.transpose(im, [2, 0, 1]).reshape((1, 3, 112, 112)) * 2 - 1#.reshape( [1,3,120, 120])*2-1
ValueError: cannot reshape array of size 12544 into shape (1,3,112,112). Is there something l need to set

Steps to Test the Whole Project?

Hello, is it possible to provide proper documentation or guideline to test the whole project?
Suppose, what are the pre-requisites and steps needed to follow?
Thanks.

Could not generate mask

I had a problem generating the face mask. Can you give a list of what libraries are required for pip?

Have you tried target attack?

I'm wondering if this method can be applied to do physical target attack since this is more dangerous. I have tried to optimize the adv patch by force the face to target face, but the similarity never goes up to 0.55. Do you have any suggestions?

Question about the bending parabolic transformation

as I know
assume
image
arc length
image
It is the same as the formula in the paper
so we get
1
As described in this figure:
4
but the equetion in the paper is:
3
in which the order of x and x' is reversed
So how can I get the formula in the paper?

Where is your pretrained model from?

Hello, thanks for your work.

Where is your pre-trained model from? Is it converted from mxnet model or you trained it from scratch using TensorFlow?

Thanks.

What's your tensorflow version?

Hi, thank you for your contribution. When I trying to reproduce your work, the tf model can't be loaded with error "InvalidArgumentError (see above for traceback): NodeDef mentions attr 'dilations' not in Op<name=Conv2D; signature=input:T, filter:T -> output:T; attr=T:type,allowed=[DT_HALF, DT_FLOAT]; attr=strides:list(int); attr=use_cudnn_on_gpu:bool,default=true; attr=padding:string,allowed=["SAME", "VALID"]; attr=data_format:string,default="NHWC",allowed=["NHWC", "NCHW"]>; NodeDef: conv0 = Conv2D[T=DT_FLOAT, data_format="NCHW", dilations=[1, 1, 1, 1], padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/device:GPU:0"](_arg_image_input_0_0/_77, W_conv0). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.)." I think this is caused by the tf version. So, what's your tensorflow version? My version is tf 1.4.0.

Questions about the Projector

We found that the code for the projector part difficult to understand, there seems a lot cumsum and index operations. We might not be familiar for parabolic transformation in the 3d space. Could you provide more references for understand?

demo.py error: NHWC tensor format for now

when i run demo.py, error happened: Generic conv implementation only supports NHWC tensor format for now, node conv0 , in line 90 , sess.run(embedding,feed_dict={image_input:batch,keep_prob:1.0,is_train:False}) .
when i hide this line (90) , it can work well, show rectangle face correctly.

what' wrong ? my tensorflow verson is 1.14.0 .,Python 3.6.
thanks a lot.

InsightFace model

Hi, I'm correctly working on target attack with your method. I found it always fails when trying to
attack other face recognition models, even though the logo is large. For example, I got 0.97 cos similarity on your model, but when applied to IR50 model in pytorch, the similarity only reached 0.42. So I'm wondering if your method only works for your model, because I did't manage to get a good mask on pytorch IR50 model even for untargeted attack. I'm wondering have you tried your method on other face recognition model.

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.