Git Product home page Git Product logo

Comments (8)

djbielejeski avatar djbielejeski commented on June 15, 2024

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.

Vitali774 avatar Vitali774 commented on June 15, 2024

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.

djbielejeski avatar djbielejeski commented on June 15, 2024

@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.

Vitali774 avatar Vitali774 commented on June 15, 2024

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.

758

from a-person-mask-generator.

Vitali774 avatar Vitali774 commented on June 15, 2024

This is essentially how I envision it, with the options being "none (default)," white, black, green, and blue for background customization.
Untitled-2

from a-person-mask-generator.

djbielejeski avatar djbielejeski commented on June 15, 2024

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.

djbielejeski avatar djbielejeski commented on June 15, 2024

@Vitali774 I made you something

https://davidbielejeski.com/segment-image

image

from a-person-mask-generator.

Vitali774 avatar Vitali774 commented on June 15, 2024

from a-person-mask-generator.

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.