Attention Masking with IPAdapter and ComfyUI

Поделиться
HTML-код
  • Опубликовано: 28 май 2024
  • Exciting new feature for the IPAdapter extesion: it's now possible to mask part of the composition to affect only a certain area... And you can use multiple masks for a perfect result. This and much more directly from the developer of the ComfyUI Extension.
    You can find a few workflows in the examples directory of the ComfyUI_IPAdapter_Plus extension: github.com/cubiq/ComfyUI_IPAd...
    More complex workflows (just download the json format):
    Masked conditioning: pastebin.com/DjYg6jMC
    Complex Masked conditioning: pastebin.com/PsD13EVK
    RGB Masking: pastebin.com/jBB9cAn2
    00:00 Intro
    00:21 Weight types
    02:51 Attention Masking
    05:17 Multiple Masks
    08:57 Mask Conditioning
    10:48 Conclusions
    🎵 Background Music
    -- "Part A" by Alexander Nakarada (www.serpentsoundstudios.com)
    Licensed under Creative Commons BY Attribution 4.0 License
    -- "White Gold" by Karl Casey @ White Bat Audio (whitebataudio.com/)
    -- "CyberPunk City" by Peritune (peritune.com/)

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

  • @latentvision
    @latentvision  6 месяцев назад +58

    I want to thank everybody for taking the time to write compliments and words of encouragement. I really do appreciate all of them and they honestly motivate me in releasing more videos. Let me know if there are topics you'd like to see covered and thank you all again!

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

      These are fantastic videos. I am wondering if there is a way to use IPadatper to only transfer color pallet or other facets of an input image (but not the whole). I think for SD 1.5 there is a way to take only the color pallet with the t2iadapters but not with SDXL - maybe you know of a way?

    • @latentvision
      @latentvision  6 месяцев назад +3

      I don't think there's a color controlnet yet for SDXL but you can use img2img with a certain grade of success. Set the colors how you want them laid out with a paint software then use that reference image as base for your img2img with a very high denoise. That should kinda work.@@EH21UTB

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

      👋

    • @ruizhu7140
      @ruizhu7140 28 дней назад

      ​ @LouisGedo Thank you so much for all you efford.Actually I am trying to make a flow in order to let a model wear some specific cloth provided as a picture. I tried lots of times, but the clothe weared by the model generated by the flow always different with the one I provided. I really want to understand how to do it . can you please explain about this .

  • @ttul
    @ttul 6 месяцев назад +25

    I’ve finally gotten into IP Adapter. Combining it with depth and pose control nets and ReActor face swap yields incredible results. For instance, I took photos of my parents and photos of vintage Christmas cards and produced a nice vintage style Christmas card that looks like them as a gift.

    • @marshy..
      @marshy.. 6 месяцев назад +5

      Could you please share your workflow? Must appreciated

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

      Bro I need to talk with u can u share ur insta id

  • @jacobharvey1004
    @jacobharvey1004 6 месяцев назад +32

    You're such a great example of an open source dev. Always listening to feedback and working with the community.

  • @nocturne3455
    @nocturne3455 6 месяцев назад +7

    IPA Plus has been the most game changing thing I've found yet. It's capabilities are insane. Can't ask for much more.

  • @ooiirraa
    @ooiirraa 6 месяцев назад +11

    There's not that many videos yet on your channel, but every video is a diamond. One of the most interesting and valuable content I've met on youtube so far. Thank you VERY much for what you are doing.

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

    Brilliant - thank you for these and for sharing the workflows

  • @dck7048
    @dck7048 6 месяцев назад +1

    Wonderful content and wonderful tech, thanks for your hard work!

  • @mr2ti41
    @mr2ti41 6 месяцев назад +9

    You’re now my #1 RUclipsr for ComfyUI . Your channel deserves so much more subs - And it will!!!

  • @heyitsjoshd
    @heyitsjoshd 6 месяцев назад +2

    The merge of styles is insane!

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

    Fantastic! A truly superb tool and fantastic explanation. Thank you!

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

    that's beautiful, that's exciting.
    exquisite, incredible work!
    you are very honored. Thank you very much for everything, a great mind.
    you have no idea how many people you're helping, making our projects more fun, easier and better!

  • @dasomen
    @dasomen 6 месяцев назад +1

    Amazing job as usual, what a great new feature update!

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

    You are a legend, loving the IpAdapter and your vids are wonderful, simple in style yet so informative ...Love em..You are appreciated..

  • @spider161
    @spider161 6 месяцев назад +1

    Amazing! Keep up the incredible work.

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

    This is awesome Bravo. I tested the channel penalty this morning, it improved the result as it handles well weights more than one

  • @8959890
    @8959890 6 месяцев назад +18

    This is just mind blowing at this point. I'm really really glad I came across you (and IPadapter) in my AI learning path!

  • @latent-broadcasting
    @latent-broadcasting 5 месяцев назад +1

    I just tested it and it's amazing! The results are impossible to obtain with a normal prompt, this bring so many possibilities. Thanks a lot for your videos!

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

    You, kind Sir, are a treasure. I absolutely love IPadapter. I am very very thankful.

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

    Fantastic work, thank you so much!

  • @user-fk4xr4ep3c
    @user-fk4xr4ep3c 3 месяца назад

    Just started going through these playlist; This is truly a gem. Thanks much for sharing.

    • @user-fk4xr4ep3c
      @user-fk4xr4ep3c 3 месяца назад

      If you get a chance, do list the machine specs you use for controlNet + animateDiff +IPAdapter? It does take a long time even on a 16GB GPU. TIA

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

    just to say thank you for you work and dedication !

  • @yotraxx
    @yotraxx 6 месяцев назад +1

    This... IS... CRAZY !!!
    Thank you so much for sharing your fantastic work !
    I'm using IP+ andd I'm impressed by the results, tanks to you !

  • @BoolitMagnet
    @BoolitMagnet 6 месяцев назад +1

    This is just absolutely amazing!

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

    Thank you for the work. Amazing tool

  • @testales
    @testales 6 месяцев назад +1

    A wizard in action! :) So this is how you are supposed to work with masks! I had to pause this video several times, so much information in such a short time, well done, very useful!

  • @enthuesd
    @enthuesd 6 месяцев назад +1

    Overnight Latent Vision becomes top SD instructor

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

    Fantastic! I will have to watch this several times!

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

    Truly amazing. Many thanks

  • @WhySoBroke
    @WhySoBroke 6 месяцев назад +1

    Matteo il MAESTRO!!! Many thanks for the great latent wisdom you give us!! ❤️🇲🇽❤️

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

    Jesus christ, ive been in love with IPAdapter since its release and this just completely unlocks all the possibilities. This is an insane value tech, thanks a lot for the contribution.

  •  6 месяцев назад +3

    I am grateful...

  • @YaBoyTwiz
    @YaBoyTwiz 6 месяцев назад +3

    Hey there! I rarely comment on videos, but I feel compelled to express my appreciation for your unique approach. Unlike many creators who merely guide us to mimic their actions, you delve deeper, offering insights into the 'why' and 'how' behind each step. This approach not only makes your content easy to follow but also empowers us to adapt and understand the process, fostering genuine learning.
    I've eagerly watched all your videos, and the knowledge I've gained is invaluable. Your response to a comment in another video about the tedium of covering basics resonated with me. It's true that many overlook the importance of fundamentals. Your explanations are a rare gem in a sea of superficial tutorials; they enable us to think, not just copy.
    To alleviate the repetition for you, perhaps consider creating a series of detailed videos on these basic concepts. This could serve as a reference point for your viewers, and it's also a strategy that tends to be favored by the RUclips algorithm.
    What captivates me the most, however, is watching your workflow, especially in segments like the anime and pixel art transformations. Your real-time commentary adds immense value. Regardless of how many times a topic has been covered by others, your unique perspective and method of presentation make your videos a must-watch, even on well-trodden subjects."

    • @latentvision
      @latentvision  6 месяцев назад +4

      A comment made by AI for a video about AI😅We live in weird times! I really enjoyed it thanks for the kind words

    • @YaBoyTwiz
      @YaBoyTwiz 6 месяцев назад +1

      I used A.I. to touch it up but its really how i felt

  • @aerofrost1
    @aerofrost1 6 месяцев назад +1

    Thank you for your work with IPAdapter. I've only been using it ever since I found your videos on it. It's so great, being able to have 1 image loras without the need to download others, and can just very quickly create them. The one Issue I've been having is it's been transferring the hair to every character design (I'm using a Harley Quinn reference I made for the adapter image and it's copying the pigtail hairstyle and face on pretty much every character lol)

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

    This is pure (AI) magic and will help soooooo much in composition! Amazing results in your demonstration, and your tutorial is spot on, very clear to understand. Thanks so much for your hard work!

  • @enriqueicm7341
    @enriqueicm7341 5 месяцев назад +1

    Thanks a lot! it was very very useful!

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

    That is pretty cool, thanks for the update and the tutorial

  • @I_reject_your_reality
    @I_reject_your_reality 6 месяцев назад +1

    I agree with others. Mind blowing feature. Thank you! 🤯👌🤘

  • @yvann.mp4
    @yvann.mp4 5 месяцев назад +1

    Incredible, thanks a lot

  • @ceegeevibes1335
    @ceegeevibes1335 2 месяца назад +1

    omg. amazing stuff... unbeatable feature.. you are brilliant

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

    amazing~!! Thank you very much !!

  • @Inner-Reflections-AI
    @Inner-Reflections-AI 6 месяцев назад +1

    Amazing Work as always!

  • @EdwardGu-ic2tn
    @EdwardGu-ic2tn Месяц назад +1

    I want thank you for your great work, not only this video, but also other videos and the comfyui_adpater_plus, which help me learn great knowledge about how to control the AI model to draw images.

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

      thanks! And have fun with AI! 😄

  • @Andro-Meta
    @Andro-Meta 6 месяцев назад

    Thank you so much for your insight :)

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

    Really awesome stuff! Brilliant!

  • @dflfd
    @dflfd 3 месяца назад +1

    thank you, this is amazing!

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

    Amazing work as always!

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

    I used to love ipadapter now I adore it 😍😍😍

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

    This is awesome - thank you 😎

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

    wow, great job! Thank you!

  • @nodewizard
    @nodewizard 5 месяцев назад +1

    Gamechanger! There are many, many methods to achieve these end results; however, as we all know, they're tedious and extremely mind-numbingly time-consuming. Matteo's IPAdapter with noise method works the best. Work smarter, not harder!

  • @petruschka222
    @petruschka222 6 месяцев назад +1

    Great job as always!

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

    bravo , matteo! 10/10 questa roba! 🔥

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

    Excellent work!

  • @TheSleppy
    @TheSleppy 6 месяцев назад +1

    This is amazing! Thanks

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

    Superb , Awsome work

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

    WOW ! you are the BEST ! It's just so hard just by looking at video but might be able to replicate by doing. Thanks for that man !

  • @user-ox3xp9lq8j
    @user-ox3xp9lq8j 6 месяцев назад

    Mateo, you are a GOD! Thank you so much!

  • @Taimoorabdullah
    @Taimoorabdullah 6 месяцев назад +4

    Holy! That was so impressive. Love your videos man! So much to learn and see it in action.

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

    this is amazing!

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

    Wow! This is a great update!

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

    amazing! Thank you!

  • @MicheleBrugiolo
    @MicheleBrugiolo 6 месяцев назад +1

    Sei un grande!

  • @RoguishlyHandsome
    @RoguishlyHandsome 2 месяца назад +1

    Outstanding

  • @pk.9436
    @pk.9436 6 месяцев назад

    Great Work again 💪

  • @p_p
    @p_p 6 месяцев назад +1

    Bella scoperta, un italiano! che bello. Iscritto subito

  • @andrewq7125
    @andrewq7125 6 месяцев назад +1

    Fantastic!
    .

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

    I love this! :)

  • @murphylanga
    @murphylanga 6 месяцев назад +1

    wow, that is great🥰

  • @ZeroIQ2
    @ZeroIQ2 6 месяцев назад +1

    Very cool!

  • @user-ly6cl5rm8u
    @user-ly6cl5rm8u 4 месяца назад

    good job🥰

  • @pedrogorilla483
    @pedrogorilla483 6 месяцев назад +3

    Wow! You have unleashed one of the best things for Stable Diffusion since ControlNets! Thanks for developing these great tools and showing us how to use them!

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

    Very valid concentrated information... thx a lot! - I wished all these special infos would be provided as "note-nodes" explaining things right in the json-example. It is obvious to me that your knowledge about all these components and how they work together is superior to some other "random-masters" on YT. It is difficult though... to remember all the little facts, like which model needs what other model and so on...

    • @latentvision
      @latentvision  6 месяцев назад +2

      I hear you, the problem with comfy (and all generative ai) is that things move so fast that any documentation is outdated in 3 months (sometimes less). That would mean reviewing all the workflows every now and then and it's a huge amount of work. I'm thinking of writing some articles especially for more complex topics... but do people still read? Everything seems to be video or burst

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

      @@latentvision You are right Matteo, thank you for your answer. I also know that my "wish" included more work for you... I didnt mean it in a demanding way, I am thankful for any piece of information on a journey into comfy UI. The problem is, that I like to understand things in depth... while it seems to me, that some are ok if if only some nice picture result in the end... and in the beginning of research it is still difficult to seperate the good from useless sources of information. Not many developpers are as good in teaching as you are, or they do not teach at all. I think, much of the information, like - basic relations - will not be outdated so quickly... once the main principles are understood... understanding coming updates can also be challenged :-)

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

    che lavoro della madonna però, grandissimo

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

    superb

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

    super cool!

  • @brgtubedev001
    @brgtubedev001 6 месяцев назад +4

    Your work is unbelievable. This is tremendous and I just can't believe we get to watch you develop in real time these tools that will revolutionize AI image generation.

  • @ronnykhalil
    @ronnykhalil 6 месяцев назад +3

    Always a treat when Mateo puts out a new video 🙌

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

    thanks king

  • @kempict
    @kempict 6 месяцев назад +1

    This tech is unreal! Your channel deserves to blow up. I'm loving your tutorial format.

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

    damn I had no reason to use comfyUI until NOW, this update is crazy

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

    This is amazing. I cannot express my feeling after seeing your video. This blows my mind. ❤😊

  • @florianbecke3076
    @florianbecke3076 6 месяцев назад +1

    Completely blow me away! Thanks so much for creating the Adapter and these tutorials! ✌

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

    If you've ever seen a child watching a juggler throw balls, you can imagine my expression.

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

      as long as it's not a clown!

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

      It's more like a magician. I look forward to watching your new videos, but there are so many questions. For example, if you are almost satisfied with the composition, but would like to remove something and move something to another place. It's still a big mystery to me.

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

    Where do you come from you hero!! Amazing explanation once again! Thank you.

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

    Mateo, this blows my mind, I'm so inspired by your great work, I can't express my gratitude enough. Your guidance hit the mark in a simple and easy to understand way which was definitely what I needed. Thanks again for the great work you do.

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

    Hey great work and equally great videos too, sorry if you have mentioned this before in a previous video, but what is node/model or setting/workflow to focus on the face?

    • @latentvision
      @latentvision  6 месяцев назад +2

      I believe you refer to the IPAdapter face model. I talk about it in the advanced video. It's doesn't need a special node, you just have to download and select the face model

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

    Bro is fuggin Yoda of ComfyUI.

  • @cwhiticar1
    @cwhiticar1 6 месяцев назад +1

    amazing tools and workflow! Insanely impressive!

  • @laslo67
    @laslo67 6 месяцев назад +1

    wow. just that... wow.

  • @kunalpuri9492
    @kunalpuri9492 6 месяцев назад +1

    Beautiful, simple, explosively relevant. You're inspiring.

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

    Great job, simply WOW. Little question, can you maybe say something about "full face" adapter?

    • @latentvision
      @latentvision  6 месяцев назад +1

      it is called FULL because it takes the whole 256 vector space to describe the face. As a comparison the plus models use 16 tokens. The result should be a very detailed face.

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

      @@latentvision tyvm, so that is why it sometimes needs lower weight in apply. Ok, one more question. In Encode IPAdapter image, best practice is that sum of weights needs to be 1.0 or it's just relative and it can be something like 1.0, 0.8, 0.5? Oh, and 1.0, 0.0, 0.0 gives different result than disconnecting 2nd and 3rd image from input in Encode IPAdapter node, bug or I don't understand how it works?

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

      yeah at the moment you can set any weight (it's relative to the image). a weight of 0.0 is actually 0.00001 because otherwise we would send a zeroed tensor which is not the same as sending no image at all@@Deadgray

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

    This is yet another great video, thank you so much !!!
    I have one so many questions as I'm new commer from A1111 to ComfyUi and I just can't have enough of it, it made me feel I'm free and the limits are my imagination.
    I was wondering, what method is best for IP adaptor, if I want to use many photos for different stuff in my final image without using inpaint of masks, I'm trying to make a robust workflow that can take inputs and get an image that is as close as to the original prompt as possible, can IP adaptor help me with this or it is more like Loras where somthing has to be picked in start to control the outcome.
    One way I'm thinking to use it is to use it in a looping fashion, like generate an image with basic prompt, use that image in IP adaptor, use new more specific prompt and generate an image, use that image in an IP adaptor with new more specific prompt and so on..
    Can this method yield a good results ? It is like using very large prompt with high CFG but without the problem of burning the images.

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

      I would start with the main elements and attention masking, then upscale and inpainting

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

    🔥

  • @reapicus557
    @reapicus557 2 месяца назад +1

    You blew me away with compositing using multiple masks. That is so freaking cool!

  • @NG2C
    @NG2C 6 месяцев назад +1

    Thanks a lot for your work on this most excellent tool. This has given me so much possibilities regarding composition, and easily as well ! Less hassle and much better control/results.
    Impressive stuff.

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

    My Mask Conditioning was not really working. Would like to see more on that as I did not get anything similar to your results. But the rest was very useful!

    • @latentvision
      @latentvision  5 месяцев назад +1

      you probably need to lower the IPA weight a little to get mask conditioning to work

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

    Creasy stuff i have to say... I used A1111 and now have switched to Invoke AI, because as strong as Comfy ui is, for a company, using architecture ease of use is the most important feature, and here it gives you as well a linear standart interface (the best out there) and also nodes.. and usal users that have not only to use nodes but dozens of programes are better off with a simpler userinterface where the nodes and inputs dont change place each session..
    But i have to say wow.. realy realy impressive

    • @latentvision
      @latentvision  6 месяцев назад +1

      the biggest advantage of comfyui is how fast it is developed and how easy it is to develop an extension for it. This is of course not always a good thing because as you say a company needs stability and ease of use. but for bleeding edge comfyui is really amazing

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

      If invoke AI adopted ComfyUI as their node backend they would have access to all the amazing custom nodes rather than have to develop theirs from scratch... just saying... They are kind of re-inventing the wheel... they should adopt rather than compete.

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

      @@BernardMaltais I believe invoke.ai uses diffusers which is an established standard but it doesn't move fast enough in this incredibly volatile technology. Building a tool like invoke over comfy would be no easy task as there are no update cycles in comfy and your code could break any day. I hope things will get easier in a couple of years when the technology settles a little

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

      @@BernardMaltais agree as an enduser i would welcome this. also i havent yet looked into the nodes of invoke. but never the less it looks promissing.
      i am teaching invoke to a big architectural company that starts to integrate image ai into their workflows.
      Here in my opinion invoke excels because of its unmatches ease of use.
      this is key in more complex company workflows, because each teammember has to deal with a dozen of different and often even much much more complex CAD and BIm tools.
      So an interface like comfy ui is somewhat far overdone for them.
      never the less things will become easier and we even cant imagine which programs and workflows in 5 years will excel

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

    Wow, just wow. So detailed explanation and so easy to follow one of the best channels on Comfyui. I am always looking forward to your videos.

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

    This is amazing. Can I upload video sequences to the ip adapter ?

    • @latentvision
      @latentvision  6 месяцев назад +1

      you can send a mask sequence. I'm working also on sending multiple reference images though

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

    really incredible -- great demo, I can't wait to use this. I've been experimenting with some of your other tutorials to make animatediff clips. Excited to see the control I might be able to get from masking areas and being able to prompt each one.