Comments (11)
I am looking for the same thing
from batch-face-swap.
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.
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.
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.
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.
Oh gotcha. I'll think about it.
Still it would somehow have to do automatic color correction
from batch-face-swap.
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.
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.
from batch-face-swap.
Will try it out this evening. Thanks my friend
from batch-face-swap.
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.
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.
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)
- [Feature Request] Roop Funtionality
- [BUG] "Existing masks" feature not working
- Inverted mask is not working HOT 1
- ValueError: height and width must be > 0
- Could not find upscaler?
- Seed in batches not incremented
- AttributeError: 'NoneType' object has no attribute 'mode' HOT 1
- [REQUEST] Script version
- Error running postprocess HOT 1
- [Bug] Stuck web-ui `run.bat` at `Installing requirements` step
- It doesnt work for a1111 1.5.1 HOT 8
- ModuleNotFoundError: No module named 'bfs_utils'
- Different prompts, same faces. HOT 2
- Face Mask Only
- Installation errors
- TypeError: cannot unpack non-iterable int object HOT 1
- Error when attempting to image split
- Doesnt seem to work with Roop anymore
- Compatibility with Dynamic Prompts?
- AttributeError: 'NoneType' object has no attribute 'strip'
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 batch-face-swap.