ComfyUI EP04 : (Smart) Inpaint with ComfyUI [Stable Diffusion]

Поделиться
HTML-код
  • Опубликовано: 14 май 2024
  • "Want to master inpainting in ComfyUI and make your AI Images pop? 🎨
    Join me in this video where I'll take you through not just one, but THREE ways to create inpaint masks! 🖌️
    1. Crafting the mask area by hand and DIY your own mask area
    2. Automatically detecting the mask region in a selected area with Impact Pack Custom Nodes
    3. Creating the mask using text prompts through ClipSeg Custom Nodes magic
    And wait, there's more! I'll also share some insider secrets on modifying masks using Masquerade Custom Nodes. 🎭
    You won't want to miss this! Hit that like and subscribe button and dive into the creative world of AI Image Generation with me! 🔥"
    You can view the method to install ComfyUI Manager here :
    • ComfyUI EP03 - Part4/4...
    Content
    =======
    00:00 - Intro
    02:12 - 1) Manual Inpaint
    09:52 - 2) SAM Auto Detection
    15:00 - Need of Masquerade Nodes
    18:04 - 3) ClipSeg
    20:32 - Conclusion

Комментарии • 126

  • @destroyingangel9838
    @destroyingangel9838 8 месяцев назад +18

    I understand English is not your first language, despite that your videos were the best ones for explaining how to install and use ComfyUI nodes etc. Showing and using examples and going through the steps is a great help. Thank you very much, you have helped me understand with less pain in the process.

  • @comfyuiadrian
    @comfyuiadrian 6 месяцев назад

    Thank you so much for the step by step of how it work. Keep up the great work!

  • @riggitywrckd4325
    @riggitywrckd4325 8 месяцев назад +2

    Thanks for showing off some of the extra nodes and how they work. Automatic masking is so cool.

  • @fredrik241
    @fredrik241 2 месяца назад

    Thank you for showing the several methods of masking and inpainting!

  • @Satscape
    @Satscape 8 месяцев назад

    Thank you, lots of great ways to inpaint in ComfyUI !

  • @HeinleinShinobu
    @HeinleinShinobu 4 месяца назад

    Thank you, finally a step by step comfyui that is easy to understand without a lot of nodes tangling together, Liked and subscribed

  • @OoRepenWorkoO
    @OoRepenWorkoO 9 месяцев назад +4

    Thanks a bunch for sharing this! Hope you'll make more videos about ComfyUI! Can't wait to see more from you.

    • @AIAngelGallery
      @AIAngelGallery  9 месяцев назад +1

      thx, I will create much more vdos about comfyui for sure!

  • @sangboizou2970
    @sangboizou2970 5 месяцев назад

    Thankyou for the tutorial, easy to understand 👍👍👍👍

  • @johnriperti3127
    @johnriperti3127 8 месяцев назад +1

    Good stuff, keep it up! We love it!

  • @SebastianGlaser_google
    @SebastianGlaser_google 4 месяца назад

    Very well explained. Keep it up man!

  • @arthitchyoutube
    @arthitchyoutube 9 месяцев назад +5

    Very informative and helpful for a comfy UI beginner. Keep up your good work. 😄

    • @AIAngelGallery
      @AIAngelGallery  9 месяцев назад

      Thx, i will continue creating good comfyui clips

  • @achen0319
    @achen0319 19 дней назад

    It realy helps! Thanks.

  • @NightOwwl728
    @NightOwwl728 5 месяцев назад

    Excellent!

  • @thenapitz
    @thenapitz 6 месяцев назад

    Thank you for sharing

  • @darkesco
    @darkesco 8 месяцев назад

    Good stuff! Thanks!

  • @user-ot6mg1tu3e
    @user-ot6mg1tu3e 7 месяцев назад +1

    Thank you a lot for your explanation and comparison it helps a lot to understand.
    Do you think Clipseg can be used in batch images?

  • @Yingphotos
    @Yingphotos 2 месяца назад

    เป็นคลิปที่ดีมากๆ ฝึกตั้งแต่ง่ายๆ ไปยากขึ้นเรื่อยๆ ผมก็นั่งทำซ้ำๆ จนจำได้แล้ว ขอบคุณครับ

  • @godpunisher
    @godpunisher 8 месяцев назад

    Thank you, I learnt so many things.

  • @rluzentales
    @rluzentales 9 месяцев назад +2

    Awesome work. Keep it up. I hope to see a future video on how to create different poses using the same face and body

  • @miracle__worker
    @miracle__worker 8 месяцев назад +1

    Спасибо большое за видео, как раз то, что я искал.

  • @WillSteffen1
    @WillSteffen1 8 месяцев назад

    fantastic thanks!

  • @myungz
    @myungz 9 месяцев назад

    Excellent. 👍

  • @Morovis
    @Morovis 9 месяцев назад

    Thank you!

  • @SaranPoroong
    @SaranPoroong 8 месяцев назад

    Great job krub. 👍👍👍

  • @candyapple9682
    @candyapple9682 8 месяцев назад

    Thanks for the video..hope you will make many more comfyui videos

  • @jorgedehaquiz2166
    @jorgedehaquiz2166 7 месяцев назад

    Thank you for all your videos, they are very helpful. I have a problem when I use set latent noise mask nothing happens even if I use the highest noise values, do you know why it could be? I can only get results when I use VAE encode

  • @RonUSMC
    @RonUSMC 8 месяцев назад

    Great video, Thanks!

  • @monkeybarking7521
    @monkeybarking7521 7 месяцев назад

    clipseg is so awesome

  • @tilbill4129
    @tilbill4129 8 месяцев назад

    thx man

  • @munkmegtube
    @munkmegtube 9 месяцев назад +3

    thank you ever so much for all the clips na kub. I hardly subscribed to a channel nowadays, but I sub yours kub....

    • @AIAngelGallery
      @AIAngelGallery  9 месяцев назад +1

      thx a lot!, r u the same person with @MunkTVDOMUNK? I'm also the fan of that channel!

    • @munkmegtube
      @munkmegtube 9 месяцев назад

      Thank you so much. I’m munk kub 🙏🏼🙏🏼

    • @munkmegtube
      @munkmegtube 9 месяцев назад

      Want to learn more about upscaling kub.

    • @AIAngelGallery
      @AIAngelGallery  9 месяцев назад +1

      @@munkmegtube oh, i also plan that next episode will be the upscale topic. Matches your requirement perfectly!

  • @ist1jano
    @ist1jano 3 месяца назад

    Great tutorial, thanks!
    Do you know how to inpaint a specific image to the tshirt?

  • @DealingWithAB
    @DealingWithAB 8 месяцев назад +2

    can you also use this with incremental_images or is this mainly for just a single image use case?

  • @arttioz
    @arttioz 9 месяцев назад

    Wow Very Good turtorial.

  • @ZayxSt
    @ZayxSt 7 месяцев назад

    Thanks

  • @tengma8497
    @tengma8497 7 месяцев назад

    Thx, I tried the "VAE encoder for inpainting" more but get less before your excellent toturial

  • @hleet
    @hleet 7 месяцев назад

    nice tutorial, how do you inpaint better hands ?

  • @kalibtv8001
    @kalibtv8001 5 месяцев назад

    Subscribed from Cambodia

  • @wallaoduser
    @wallaoduser 7 месяцев назад

    Thank you for your content. HOW can i put a logo (or any image) on her shirt?

  • @PiXiEEZ1
    @PiXiEEZ1 9 месяцев назад

    สุดยอดมากเลยครับคุณ ขอบคุณนะครัับ

    • @AIAngelGallery
      @AIAngelGallery  9 месяцев назад +1

      มีสุดยอดกว่านี้อีกเยอะเลยครับ จะค่อยๆ สอนไปนะครับ

    • @PiXiEEZ1
      @PiXiEEZ1 9 месяцев назад

      @@AIAngelGallery รอเลยครับ❤

  • @AnthonyDev
    @AnthonyDev 5 месяцев назад

    Excellent video, thanks! But when I'm inpainting and I use a image generated by the default workflow using copy/paste clipspace, the inpainting is fast but when I use inpainting loading a new image from the disk the inpainting is slower because everytime I queue prompt it "requests to load basemodel" again. Is there a way to doesn't load a model everytime when using image from disk like source?

  • @the_meridian
    @the_meridian 2 месяца назад

    New person question: When you have all of this hooked up to your main workflow and you hit "Queue Prompt" it runs through the whole thing instead of going to the mask subroutine, screwing everything up. I didn't see you bypass anything so how do you avoid that?

  • @eak2000cm1
    @eak2000cm1 9 месяцев назад

    มาแล้วครับอาจารย์

    • @AIAngelGallery
      @AIAngelGallery  9 месяцев назад

      สงสัยอะไรถามได้นะครับ

  • @MiraPloy
    @MiraPloy 8 месяцев назад +2

    There are a couple of other alternative nodes to inpainting that I've found, like ComfyI2I and some custom nodes in Impact Pack. Do you think they're worth trying out or are they about the same?
    I'm looking to do auto face and hands fixing, there are facedetailer nodes specifically in other node packs but it looks like clipseg as described here kinda just works already. Do you think it makes sense to use clipseg for that or should i use a more specialized node?

    • @AIAngelGallery
      @AIAngelGallery  8 месяцев назад +1

      Impact pack detailers node is super powerful. I will cover it in future episode because it is very complex one.

  • @ethioanimation3898
    @ethioanimation3898 5 месяцев назад

    hi please help u added graphics to the t-shirt using a prompt u typed a flower and changed it to flower but what if i have an existing graphics image. how can i add my existing graphics to the t-shirt

  • @leandrogoethals6599
    @leandrogoethals6599 4 месяца назад

    the "manager" button is not present in my ui do u need to enable that somewhere or have i downloaded the wrong version?

  • @RAZVRATKA
    @RAZVRATKA 2 месяца назад

    Спасибо бро

  • @ahmetneder1
    @ahmetneder1 2 месяца назад

    hello, is it posible 2d character to psd file, each body parts another image file, how can we do?

  • @celebAIdance
    @celebAIdance 9 месяцев назад

    Great vid but what if i want to create mask of batch of images?

    • @AIAngelGallery
      @AIAngelGallery  9 месяцев назад

      You can do that with load image batch in WAS Node suite github.com/WASasquatch/was-node-suite-comfyui

  • @sunlightevidence4359
    @sunlightevidence4359 6 месяцев назад

    What if I want to put an external image on the shirt?

  • @yiluwididreaming6732
    @yiluwididreaming6732 7 месяцев назад

    Kind gentleman....can you show how to edit parts of body please? Using inpaint? Shape of arms, legs, fingers or even the face....So is this possible?

  • @lucademarco5969
    @lucademarco5969 9 месяцев назад

    Could you make a tutorial on how to swap face with comfyui? What i mean is to changetheface of a photo with the face taken from another
    Hlto. Thanks in advance!

  • @samprocess
    @samprocess 9 месяцев назад

    ตามดูครบทุกตอน ดูว่ายอดเยี่ยมและน่าสนใจมากครับ ขอรบกวนสอบถามครับ
    1. สำหรับคนทั่วไปถือว่า ComfyUIใช้งานง่ายกว่า automatic 1111 ใช่ไหมครับ (กำลังจะลง 1111 พอดีมาเจอคลิปนี้ครับ)
    3. เทรนlora ได้ไหมครับ

    • @AIAngelGallery
      @AIAngelGallery  8 месяцев назад

      ตอบไปในเม้นอีกอันแล้วนะครับ

  • @zoemorn
    @zoemorn 3 месяца назад

    Sometimes inpainting through SetLatentNoiseMask generates very poorly compared to using Vae for Inpainting, poorly meaning that though it stays in the mask, what it generates is not logically good or desired compared to Vae for Inpainting which seems to 'understand' better what is intended or desired. Have you seen this or have advice? in your example at 6:51 using SetLatentNoiseMask works great so i dont know why i sometimes get poor results unless it is the model i am using. do some models work poorly with inpainting and can you provide your experience on that? Thank you for your channel

  • @a.k.amatsu4876
    @a.k.amatsu4876 3 месяца назад

    Is this work for SDXL?

  • @dayaparanponnambalam6495
    @dayaparanponnambalam6495 5 месяцев назад

    Can i have the workflows all methods mentioned here please

  • @0A01amir
    @0A01amir 8 месяцев назад +1

    Manual for personal images is the way to go since most of them are jpegs and don't have enough data in them, auto/smart mask will make a mess on them, clipseg/sam for your generations, like someone else in comments, i like to see faceswap tutorial in comfyui, thank you.

    • @AIAngelGallery
      @AIAngelGallery  8 месяцев назад

      I understand that clipseg and sam can look at any image regardless of image format. So jpg things should not relevant? (Except that jpg quality is bad)

    • @0A01amir
      @0A01amir 8 месяцев назад +1

      @@AIAngelGallery well tbh they can't figure the depth or in medium quality images anything. you select/type a tree in the background, they select half of the right arm of the person far away from the tree.

  • @Wetlookai
    @Wetlookai 8 месяцев назад

    how to make a model with a wet t-shirt? prompts dont seem to work very well. thnaks

    • @AIAngelGallery
      @AIAngelGallery  8 месяцев назад

      you can use this LORA (watch EP07 about how to use it)
      civitai.com/models/17391/wet-t-shirt-lora

  • @CHILDISHHEART
    @CHILDISHHEART 5 месяцев назад

    ผมตั้ง node เหมือนพี่เลย แต่ของผมมันไปรัน gen ภาพข้างบนด้วย อยากให้มันรันแต่ inpaint ต้องทำไงครับ ทำไมของวิดีโอคลิปพี่ มันรันแต่ inpaint

  • @ZebraSucks
    @ZebraSucks 4 месяца назад +1

    If the image is larger than the model's training data you will get tiled and/or strange results that doesn't fit properly in the mask. For this it's best to run the "Load Image" node through the "Image scale to side" and set side length to the models trained size, for example 1024 or 512 and then use this scaled image as your image source.

    • @harshitpruthi4022
      @harshitpruthi4022 4 месяца назад

      i am having problem with that automatic one . will it solve it 100%

  • @amineroula
    @amineroula 3 месяца назад

    how use an image as a mask, comfyUi masking is not perfect, lets say you use photoshop to create a perfect mask, then import the alpha into ComfyUI for masking the image and regenerate that part of the image, how to do that please, can someone help?

  • @cholavejlomtong980
    @cholavejlomtong980 9 месяцев назад

    สอนวิธีใช้งาน Lora หน่อยครับผมติดตามอยู่นะครับผม ดีมากๆเลยครับ

    • @AIAngelGallery
      @AIAngelGallery  9 месяцев назад

      เดี๋ยวสอนในตอนต่อไปครับ

  • @CompileNix
    @CompileNix 9 месяцев назад +2

    This guy is living the future, on the 13th of august 2566 to be exact 😆
    How do you even manage to set your system time that far into the future?
    BTW: Great video, thanks 🙂

    • @AIAngelGallery
      @AIAngelGallery  9 месяцев назад +5

      Oh, it's Buddhist Era year , equal 2023+543 = 2566

    • @saltyseadog4719
      @saltyseadog4719 8 месяцев назад

      oh lol kk
      @@AIAngelGallery

    • @saltyseadog4719
      @saltyseadog4719 8 месяцев назад

      why is it like that?
      @@AIAngelGallery

    • @rexshield1871
      @rexshield1871 8 месяцев назад +1

      ​@@saltyseadog4719because not all country in the world uses Gregorian calendar. There are many kinds of calendar system, and in Buddhist country, they use Buddhist Era (BE) calendar.

  • @vuvinh9809
    @vuvinh9809 8 месяцев назад

    Can I inpainting to change the shirt the model is wearing into a shirt I already have photos of

    • @AIAngelGallery
      @AIAngelGallery  8 месяцев назад

      You should do that in photo editor first, then use the result to inpaint again with not so much denoise

  • @morfest
    @morfest 9 месяцев назад +1

    ไม่ทราบว่าพอจะบอกได้ไหมครับว่าในคลิปนี่ใช้ Checkpoint ชื่อเต็มๆว่าอะไรครับ? พอดีชื่อมันซ้อนกันมองไม่ออก (แต่ถ้าบอกไม่ได้ก็ไม่เป็นไรครับ)

    • @AIAngelGallery
      @AIAngelGallery  9 месяцев назад +1

      Epicrealism ครับ รายละเอียดอยู่ในคลิปแรก EP01 ของช่องเลย

    • @morfest
      @morfest 9 месяцев назад

      อ้อ ขอบคุณครับ 🙏@@AIAngelGallery

  • @DoozyyTV
    @DoozyyTV 8 месяцев назад

    I have a problem, when I inpaint, it somehow makes the entire image more contrasty and removes detail, and if I keep copying the result and inpaint again it keeps get darker worsening quality. How can I fix this and why does it do this?

    • @AIAngelGallery
      @AIAngelGallery  8 месяцев назад

      Get darker only in the inpainted area? Or whole picture?

    • @DoozyyTV
      @DoozyyTV 8 месяцев назад

      @@AIAngelGallery the whole picture, only the mask area gets regenerated but the whole picture get this contrast increase. I set it up exactly like you did.

    • @DoozyyTV
      @DoozyyTV 8 месяцев назад

      @@AIAngelGallery I think it was the vae I was using

  • @sprinteroptions9490
    @sprinteroptions9490 7 месяцев назад

    Hi are these nodes sdxl compatible?

    • @sprinteroptions9490
      @sprinteroptions9490 7 месяцев назад

      Nevermind. It all worked alright. Great tutorial man. Very much appreciated! Clipseg and SAM are great!

  • @munkmegtube
    @munkmegtube 9 месяцев назад +1

    Lora ใช้กับ comfyui ได้ไหมครับ

    • @AIAngelGallery
      @AIAngelGallery  9 месяцев назад +1

      ได้ครับ มีnode เอาไว้ load lora ด้วย

    • @munkmegtube
      @munkmegtube 9 месяцев назад

      @@AIAngelGallery ทำได้ละครับ ขอบคุณครับ

    • @munkmegtube
      @munkmegtube 9 месяцев назад

      @@AIAngelGallery ใน comfyui ถ้าใช้มากกว่า หนึ่ง model ต้องทำยังไงครับ🙏🏼🥹+ รอ upscale อยู่นะครับ ทำ หลายวิธีมาก ออกมาไม่ดีเลยครับ

    • @AIAngelGallery
      @AIAngelGallery  9 месяцев назад

      @@munkmegtube รอแป๊ปนะครับ พอดียุ่งๆ กับงานหลักอยู่ (ผมเป็นวิทยากรสอน Excel กับ Power BI ครับ)

  • @Rubberduck-lb2ci
    @Rubberduck-lb2ci 8 месяцев назад +1

    Hallo my indian friend.
    I work since one week with comfyui and learning a lot how to do things with it, but i dont understand why the ui do wat its do.... now i found your Video and you teach it so god! Thx, greetings from Germany 😊

  • @santisook333
    @santisook333 Месяц назад

    กด queue Prompt อย่างไรครับ ให้มันทำแค่ ksample เดียว ผมกดแล้วมันทำงาน 2 อันเลยครับ

    • @AIAngelGallery
      @AIAngelGallery  29 дней назад

      กด ctrl+m mute หรือ ctrl+b bypass ตัวที่ไม่ต้องการ

  • @MikevomMars
    @MikevomMars 8 месяцев назад

    Why does the KSampler node in your video display a realtime preview image? Mine does not 😐 How can I enable this? *EDIT:* Found the solution! Edit the "run_nvidia_gpu.bat" file with "--preview-method auto" on the end. It will show the steps in the KSampler panel, at the bottom ☺

    • @AIAngelGallery
      @AIAngelGallery  8 месяцев назад +1

      You can also set it in the manager (easier)

    • @MikevomMars
      @MikevomMars 8 месяцев назад

      @@AIAngelGallery Nice, thx! Now all I wish is to have some kind of "switch" or "toggle" node to chose what workflow will be processed when I click on "Queue Prompt". Right now it always processes BOTH workflows (inpainting the chosen image and creating a completely new one).

    • @AIAngelGallery
      @AIAngelGallery  8 месяцев назад +1

      @@MikevomMars if the result is the same (same fixed seed), comfyui will not generate that part

    • @user-ot6mg1tu3e
      @user-ot6mg1tu3e 7 месяцев назад

      @@MikevomMars comfy roll custom node have switch node, take a look.

  • @kamizama9177
    @kamizama9177 3 месяца назад

    คนไทยใช้มะ

  • @chethankumarda9883
    @chethankumarda9883 5 месяцев назад

    how to outpaint in comfyui

  • @rexforwood
    @rexforwood 8 месяцев назад

    A great tutorial .. I'm having trouble loading Impact pack ... Note in manager "please edit the impact-pack.ini file in the ComfyUI-Impact-Pack directory and change 'mmdet_skip = True' to 'mmdet_skip = False." I can't find the impact-pack .ini file .. can you help . thank you

    • @AIAngelGallery
      @AIAngelGallery  8 месяцев назад

      it's in "ComfyUI-Impact-Pack" Folder in Custom Nodes. however, i never need to edit that stuff.
      to use manager and impact pack proper;y, you should update main ComfyUI and Manager using "git pull" command

  • @relaxingparadise2033
    @relaxingparadise2033 8 месяцев назад

    Does the value of 1234 in the seed have a function? What happens if I change the seed number?