Giter VIP home page Giter VIP logo

faceoff's People

Contributors

392781 avatar jamsge 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

faceoff's Issues

Please fix your bugs

Your codes are full of bugs. Could you please fix them? I don't think your examples can run successfully.

Information lost when converting mask to img and reading back into resnet

I have noticed in the generation of the mask, the values used are in the range of (-1,1) seen both in:

adversarial_face_recognition.py ln 187:
self.mask_list[i].data.clamp_(-1, 1)

and alogorithm.py ln 74:
delta.data.clamp_(-1, 1)

I believe the range is to be in (0,1) as when imagize(adver.detach().cpu()) is called the values are normalised to fit in to the range (0,255). Howveer, when we try to read this image back into resnet by calling tensorize() the valuse (0,255) is fitted into the range of (0,1) instead of (-1,1). The resultant tensor is significantly different from the apply(input_tensor, delta) tensor. To prevent the data lost, the mask should be generated in the range of (0,1) instead.

Why the Dist. to Target grows with the epoch?

Epoch 28:
Loss = -0.5512599
Dist. to Image = 0.9096553
Dist. to Target = 0.3583954
Face detection = True
Epoch 29:
Loss = -0.5638140
Dist. to Image = 0.9396414
Dist. to Target = 0.3758273
Face detection = True
Epoch 30:
Loss = -0.5764654
Dist. to Image = 0.9016970
Dist. to Target = 0.3252316
Face detection = True

heath-halle

I feel like the end result is blending the perturbation on the original face image instead of masking it directly. And I found that as the epoch increases, the perturbations appear more and more sparse.

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.