Giter Club home page Giter Club logo

a-person-mask-generator's Introduction

a-person-mask-generator

Extension for Automatic1111 and ComfyUI to automatically create masks for Background/Hair/Body/Face/Clothes in Img2Img

Uses the Multi-class selfie segmentation model model by Google.

Updates

  • 2024-05-26 - Adding facial landmark mask outputs for ComfyUI
  • 2024-05-25 - Fixed ComfyUI requirements and install
  • 2024-01-01 - Added ComfyUI support
  • 2023-11-16 - Initial release

Install - Automatic1111 Web UI

(from Mikubill/sd-webui-controlnet)

  1. Open "Extensions" tab.
  2. Open "Install from URL" tab in the tab.
  3. Enter https://github.com/djbielejeski/a-person-mask-generator.git to "URL for extension's git repository".
  4. Press "Install" button.
  5. Wait 5 seconds, and you will see the message "Installed into stable-diffusion-webui\extensions\a-person-mask-generator. Use Installed tab to restart".
  6. Go to "Installed" tab, click "Check for updates", and then click "Apply and restart UI". (The next time you can also use this method to update extensions.)
  7. Completely restart A1111 webui including your terminal. (If you do not know what is a "terminal", you can reboot your computer: turn your computer off and turn it on again.)

Install - ComfyUI

  1. Navigate to your ComfyUI folder, then into the custom_nodes folder in a CMD window and run the following command
git clone https://github.com/djbielejeski/a-person-mask-generator

Example

D:\ComfyUI\custom_nodes>git clone https://github.com/djbielejeski/a-person-mask-generator
  1. Restart ComfyUI.

Automatic1111 Examples

Face

image

Face + Body

image

Clothes + Hair

image

Mask Settings

image

ComfyUI Example - Person

Workflow embedded in image, drag into ComfyUI to use.

Masks in this order

  1. Face
  2. Background
  3. Body + Clothes
  4. Hair

image

ComfyUI Example - Face Landmarks

image

a-person-mask-generator's People

Contributors

djbielejeski avatar rabbitflyer avatar rmcc3 avatar

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.