Comments (8)
Can you describe your use case and how this would add value?
All this extension does is create a Black and White mask
from a-person-mask-generator.
Hello David, thank you for your quick reply. The primary use will be for post-processing in other applications like Photoshop and Illustrator. Since your "masterpiece" produces very high-quality results by regenerating the entire image, this level of quality cannot be achieved using Photoshop's masking feature alone (it's very time-consuming). Having the ability to easily select the subject in an external application will greatly improve the workflow after using SD. I tried to achieve it using the prompt, but even with prompt weighting and the use of the in-paint model, the results are less than ideal, to say the least. It often attempts to fill the space with random content from the source generation.
All this extension does is create a Black and White mask<<<
Not really. Your extension has the ability to regenerate the entire image, which is much more powerful than using a black-and-white mask alone. Your extension can be used by simply enabling ControlNet, selecting Inpaint, and setting the noise to a value of 1. In that case, we don't even need to use an additional inpaint model at all.
from a-person-mask-generator.
@Vitali774 Would you use a tool for generating these masks for post processing outside of Automatic1111? Aka a standalone python script could be made relatively quickly for this that could allow different colors for each selected mask.
from a-person-mask-generator.
I will try to explain with pictures. Images from left to right:
1.Generated image.
2.Generated image with your mask applied and the prompt set to "white wall."
3.Photoshop image with your generated mask applied separately.
Please notice the quality of the edges. When I generate an image inside img2img with your mask applied, the result is completely different because SD tries to regenerate a significant part of the image in order too match new background. As of now, PNG mask files have very rough edges, so they are not really useful outside of automatic1111.
from a-person-mask-generator.
This is essentially how I envision it, with the options being "none (default)," white, black, green, and blue for background customization.
from a-person-mask-generator.
I don't think building this into the tool would be helpful for general use. You can download the preview and perform those edits and upload the mask into SD manually using the "Inpaint upload" feature.
from a-person-mask-generator.
@Vitali774 I made you something
https://davidbielejeski.com/segment-image
from a-person-mask-generator.
from a-person-mask-generator.
Related Issues (20)
- Error in Colab HOT 3
- Looking forward to detect head accessories HOT 2
- Do you plan to expand access via API? HOT 2
- Failed to detect a face with glasses HOT 1
- Error on launch HOT 5
- A request HOT 4
- Does not work correctly by API HOT 8
- FEATURE REQUEST--negative mask dilation values
- Is there a way to extract the mask with an API call? HOT 2
- Installation issues HOT 4
- no mask generated, ***Error running before_process HOT 2
- add same person mask generator for comfyui node? HOT 1
- Not working HOT 2
- Error occurred when executing APersonMaskGenerato HOT 2
- ERROR HOT 2
- Error occurred when executing LayerMask: PersonMaskUltra V2: HOT 1
- Error occurred when executing APersonMaskGenerator: HOT 1
- Setup Error HOT 1
- ModuleNotFoundError: No module named 'folder_paths' during extension installation HOT 1
- Mask generated via API is vastly diffrent and inaccurate
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 a-person-mask-generator.