Code Monkey home page Code Monkey logo

Comments (14)

Ganonmaster avatar Ganonmaster commented on May 19, 2024 1

Very exciting, I'll be taking a look tomorrow. I'm bouncing between two workstations; don't have the processing power to do anything substantial other than some basic refactoring right now. Very promising though!

from faceswap-model.

Clorr avatar Clorr commented on May 19, 2024

I gave a try at https://github.com/ageitgey/face_recognition

I thought it was mostly a repackaging of dlib, but it actually solves the 2 issues I raised on faceswap-playground!

@Ganonmaster can you give it a try and see if it is better for you. I pushed it in my own repo https://github.com/Clorr/faceswap

(It is also pushed with a Dockerfile rework and reqs should be cleaned before PR-ing it...)

from faceswap-model.

Clorr avatar Clorr commented on May 19, 2024

Ow sh*t, it's been pushed to the upstream repo.... I'll check how I did that, and revert

(It seems I haved messed things with Github Desktop, but I don't understand why a sync with my account pushes things to the upstream repo...)

from faceswap-model.

Clorr avatar Clorr commented on May 19, 2024

Yeah I had a look at the code and was thinking it wouldn't change much, but actually, it did very well. When installing, it fetches its own models, and that's maybe where the magic comes from ;-)

from faceswap-model.

Clorr avatar Clorr commented on May 19, 2024

Also I realize my commit from yesterday with an aligner is also in the upstream...

I was not satisfied with it, have you seen a difference ? Do you want me to remove it, or is it ok for you ?

from faceswap-model.

Ganonmaster avatar Ganonmaster commented on May 19, 2024

I've not seen an improvement for the aligner so far, it seem to not have had much impact.

However, I just ran the extract script on the Trump folder with the face_recognition lib, and the results seem to be so much better. Scanning the Trump dataset yielded roughly 120 faces out of 376 images, whereas the new lib managed to grab 310. Results for my Charlize Theron and Clinton pictures are similar. Going to try and test it with a trained model asap. 😃

from faceswap-model.

Ganonmaster avatar Ganonmaster commented on May 19, 2024

Not sure if it's the aligner's fault, the test data, or the new face recognition, but some of these converted photos seem to be the proper size, while on others it seems to be enlarging the resulting faces.
out234
out249
out218

from faceswap-model.

Clorr avatar Clorr commented on May 19, 2024

Yes it's an aligner issue I also encountered, I'll revert that...

But it's a great news for the recognition !

from faceswap-model.

Clorr avatar Clorr commented on May 19, 2024

Btw if you want to mute the aligner, it is in lib/faces_process.py . The old superpose is there as a fallback

from faceswap-model.

deepfakes avatar deepfakes commented on May 19, 2024

Hi guys!

I had a review of the code, things go well I see ;-)

@Clorr I disabled the Aligner, but the rest seems fine
@Ganonmaster I did a little modification on cli.py to preserve Python2 compatibility.

If you have ideas to move on to a full Python3 setup, it would be pretty cool.
About folder structure, it is a bit messy for now, once we args parsing on all entrypoints, we should decide about a more standard/usable folder structure, and also, we will have to update the docs...

Keep up the good work guys ! It's moving on pretty well!

from faceswap-model.

Ganonmaster avatar Ganonmaster commented on May 19, 2024

I'm doing pretty much all my testing on Python3 and would suggest making that the standard for this project going forward. "New" projects like this should strive to not depend on legacy software, as it only delays the inevitable and makes transitioning more painful. That does not mean it can't be Python2 compatible, but I would strongly recommend developing for Python3 first and Python2 as a nice to have.

from faceswap-model.

deepfakes avatar deepfakes commented on May 19, 2024

I totally agree we should move on to python3.
The problem is the Dockerfile has been built with python2, and if user try the project with it, it will fail, so it's a bit sad.
But, all in all, it is just a matter of migrating the Dockerfile...

from faceswap-model.

Yutsa avatar Yutsa commented on May 19, 2024

On deepfakes subreddit there are lots of different versions of the scripts like this one for instance.

Is it better than what we have now ? Should we try to integrate it ?

from faceswap-model.

Clorr avatar Clorr commented on May 19, 2024

This is more a face alignment patch than a face detection one. But yes it would be nice to have it integrated. However the face alignment part relies on pytorch which is an annoying dependency (heavy and not available on windows).

So the seamless clone face merge part can be integrated if it is more performant than what we have. The face alignment part could be interesting but not as the official algorithm. So it can pushed in a branch if you want. Or even better, we could replace the face landmarks detection by something we already have in ‘face-recognition‘ module

from faceswap-model.

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.