Giter VIP home page Giter VIP logo

Comments (11)

edosedgar avatar edosedgar commented on May 24, 2024

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.

SURABHI-GUPTA avatar SURABHI-GUPTA commented on May 24, 2024

@edosedgar yeah.. I did everything according to your code.. tried for higher epochs, but still not getting good results.

from mtcnnattack.

edosedgar avatar edosedgar commented on May 24, 2024

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.

SURABHI-GUPTA avatar SURABHI-GUPTA commented on May 24, 2024

@edosedgar, why I need to change the resize function ?

from mtcnnattack.

edosedgar avatar edosedgar commented on May 24, 2024

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.

SURABHI-GUPTA avatar SURABHI-GUPTA commented on May 24, 2024

@edosedgar If you have removed that from repo, how are results good with your input images ?

from mtcnnattack.

edosedgar avatar edosedgar commented on May 24, 2024

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.

aiguoth avatar aiguoth commented on May 24, 2024

@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
1615277799(1)

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.

aiguoth avatar aiguoth commented on May 24, 2024

I fixed it by this repo.
https://github.com/Polkach/cv-inter_area-on-tensorflow

from mtcnnattack.

edosedgar avatar edosedgar commented on May 24, 2024

@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.

zzyyyyy1020 avatar zzyyyyy1020 commented on May 24, 2024

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)

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.