Git Product home page Git Product logo

Comments (5)

wuhuikai avatar wuhuikai commented on September 27, 2024

It mainly depends on the point detection algorithms. The algorithm I used can't handle well with the eyebrows. I think you can try to replace it with a CNN-based algorithm like this one.

from faceswap.

anoire73 avatar anoire73 commented on September 27, 2024

from faceswap.

Clark-zhang avatar Clark-zhang commented on September 27, 2024

Thanks, but i use hack, and set eyebrow coordinates bigger for masks. It turns out what you need, eyebrows are captured.  10.09.2018, 09:54, "Wu Huikai" [email protected]:It mainly depends on the point detection algorithms. The algorithm I used can't handle well with the eyebrows. I think you can try to replace it with a CNN-based algorithm like this one.—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

Hi, @anoire73
Could you tell me which line in the code you modified to be able to swap eyebrows too? Thanks :)

from faceswap.

anoire73 avatar anoire73 commented on September 27, 2024

from faceswap.

Clark-zhang avatar Clark-zhang commented on September 27, 2024

points = np.asarray(face_points_detection(im, bbox))        points[17] = points[17] - np.asarray([[0, 40]])    points[18] = points[18] - np.asarray([[0, 40]])            points[19] = points[19] - np.asarray([[0, 40]])    points[20] = points[20] - np.asarray([[0, 40]])            points[21] = points[21] - np.asarray([[0, 40]])    points[22] = points[22] - np.asarray([[0, 40]])                points[23] = points[23] - np.asarray([[0, 40]])    points[24] = points[24] - np.asarray([[0, 40]])            points[25] = points[25] - np.asarray([[0, 40]])    points[26] = points[26] - np.asarray([[0, 40]])            points[27] = points[27] - np.asarray([[0, 40]])                    im_w, im_h = im.shape[:2]    left, top = np.min(points, 0)    right, bottom = np.max(points, 0)        x, y = max(0, left-r), max(0, top-r)    w, h = min(right+r, im_h)-x, min(bottom+r, im_w)-y     return points - np.asarray([[x, y]]), (x, y, w, h), im[y:y+h, x:x+w]

OK, thank you so much. Cheers 👍

from faceswap.

Related Issues (20)

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.