Comments (11)
That patches do not look ok to me, too frequent texture, you have likely done something wrong, check with the patches given in a repo, they have a different look
from mtcnnattack.
@edosedgar yeah.. I did everything according to your code.. tried for higher epochs, but still not getting good results.
from mtcnnattack.
It looks like you did not implement the resize function, please read the README carefully. It is important that optimization takes place with three downscaled pictures.
from mtcnnattack.
@edosedgar, why I need to change the resize function ?
from mtcnnattack.
Well, since I used the internal Huawei implementation of INTER_AREA resize function (which is supposed to be differentiable), I removed it from the repo.
Refer to this part https://github.com/edosedgar/mtcnnattack/blob/master/utils/inter_area.py
You might try to go with the other resize functions (like simple bi-linear and even nearest neighbors). It should also work. Actually the resize function passes the image further on w/o any resizing now, which is not to going to work.
from mtcnnattack.
@edosedgar If you have removed that from repo, how are results good with your input images ?
from mtcnnattack.
I ran the experiments with the internal implementation I have on my local version of the repo.
Try to use the tf built-in resize function with linear interpolation.
from mtcnnattack.
@edosedgar I try to use the tf built-in resize function : whole = tf.image.resize_images(im_inp, [hs, ws], method=1), but the patchs like this
when I try to use inter_area I got : LookupError: No gradient defined for operation 'resize_area/resize/ResizeArea' (op type: ResizeArea) it seems not differentiable
from mtcnnattack.
I fixed it by this repo.
https://github.com/Polkach/cv-inter_area-on-tensorflow
from mtcnnattack.
@edosedgar I try to use the tf built-in resize function : whole = tf.image.resize_images(im_inp, [hs, ws], method=1), but the patchs like this
when I try to use inter_area I got : LookupError: No gradient defined for operation 'resize_area/resize/ResizeArea' (op type: ResizeArea) it seems not differentiable
Specify a linear interpolation or use the code snippet given above by @guoth
from mtcnnattack.
I fixed it by this repo. https://github.com/Polkach/cv-inter_area-on-tensorflow
Did you succeed in the end?
I put inter_ Replace the area code with the Inter in the link you provide_ Area, no confrontation patch can be generated in the digital domain
from mtcnnattack.
Related Issues (14)
- built own mask HOT 2
- How can I get my own input_ img
- how to generate patch with RGB? HOT 1
- I fixed it by this repo.
- How to realize the Projective transform?
- What do the three paremeters in this mean? adv_mask.set_input_sizes([(73, 129), (103, 182), (52, 92)])
- What is the reason for the checkerboard? HOT 1
- How to test the attacked face HOT 1
- How to set the mask array HOT 2
- 【Novice programmer】version of tensorflow and python HOT 2
- Understanding the pipeline HOT 3
- Set mask on my photo HOT 7
- AttributeError: module 'tensorflow' has no attribute 'contrib' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtcnnattack.