Giter Site home page Giter Site logo

Comments (11)

Echolink50 avatar Echolink50 commented on May 25, 2024

I am looking for the same thing

from batch-face-swap.

kex0 avatar kex0 commented on May 25, 2024

Iā€™m sorry but using pictures as a face replacement is out of scope of this project. This project is an extension for stable diffusion and is focused on generating faces with stable diffusion so if you want it to generate unique faces that it doesn't know, you should train it.

from batch-face-swap.

Echolink50 avatar Echolink50 commented on May 25, 2024

Iā€™m sorry but using pictures as a face replacement is out of scope of this project. This project is an extension for stable diffusion and is focused on generating faces with stable diffusion so if you want it to generate unique faces that it doesn't know, you should train it.

I'm not sure what Zerocool22 is trying to do but I would just like a way to specify a folder of cropped faces to be used just like you can specify a folder of images you watch to have the face swapped on. Seems simple enough. Even if you can tell us the part of the code that tells the automatic1111 where to get the prompt generated face it could probably be modified to point to an existing directory instead of where ever the prompted face is stored before being swapped on to the image. Thanks

from batch-face-swap.

kex0 avatar kex0 commented on May 25, 2024

I just don't see how this would work. How would it select the right face from the folder that would fit the image. Assuming you even have the right picture. You would have to have a massive library of the face with all the different angles and lighting conditions otherwise it would not fit the rest of the image. At that point you can just train the SD model.

from batch-face-swap.

Echolink50 avatar Echolink50 commented on May 25, 2024

I just don't see how this would work. How would it select the right face from the folder that would fit the image. Assuming you even have the right picture. You would have to have a massive library of the face with all the different angles and lighting conditions otherwise it would not fit the rest of the image. At that point you can just train the SD model.

Same way the mask works. Just have the same name 0001.jpg face on 0001.jpg image

from batch-face-swap.

kex0 avatar kex0 commented on May 25, 2024

Oh gotcha. I'll think about it.

Still it would somehow have to do automatic color correction

from batch-face-swap.

Echolink50 avatar Echolink50 commented on May 25, 2024

In my use case the faces would already be cropped and color matched. I think trying to make the extension do all that is definitely asking to much. I only ask for this small feature because it seemed like it would be relatively easy to implement. Just a folder of faces the extension can look to if you don't want the text generated face.

from batch-face-swap.

kex0 avatar kex0 commented on May 25, 2024

Here try this branch:
https://github.com/kex0/batch-face-swap/tree/existing_face

A very rough piece of code that maybe does what you want. I have no way to test it.

image (2)

from batch-face-swap.

Echolink50 avatar Echolink50 commented on May 25, 2024

Will try it out this evening. Thanks my friend

from batch-face-swap.

Echolink50 avatar Echolink50 commented on May 25, 2024

Here try this branch: https://github.com/kex0/batch-face-swap/tree/existing_face

A very rough piece of code that maybe does what you want. I have no way to test it.

image (2)

The branch functions as expected. Additional settings for masks and things would be a welcomed addition. Thank you for your efforts

from batch-face-swap.

2blackbar avatar 2blackbar commented on May 25, 2024

The existing face things is interesting idea, a code that detects closest face angle and tries to match them and paste onto image could be interesting or a fail cause light wouldnt match , but if its from same photshoot, who knows

from batch-face-swap.

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.