How to use PuLID in ComfyUI

Sdílet
Vložit
  • čas přidán 30. 05. 2024
  • In this video I'm going through some basic PuLID usage and also comparing it to other face models. If you have it already installed remember to upgrade the extension!
    PuLID ComfyUI extention: github.com/cubiq/PuLID_ComfyUI
    Face Analysis node: github.com/cubiq/ComfyUI_Face...
    Github sponsorship: github.com/sponsors/cubiq
    Support with paypal: www.paypal.me/matt3o
    Twitter: / cubiq
    My Discord server: / discord
    Workflows: f.latent.vision/download/puli...
    00:00 Intro
    00:31 Basic Usage
    02:41 Improve image with face analysis
    05:59 Face detailer
    11:16 Advanced node
    13:35 Style transfer and attention masking
    16:10 Comparing face models
    16:35 Comparison PuLID
    17:02 Comparison FaceID
    17:52 Comparison PhotoMaker
    18:06 Comparison FaceID Potrair Unnorm
    18:32 Comparison InstantID
  • Věda a technologie

Komentáře • 176

  • @miranteazi
    @miranteazi Před 19 dny +5

    Always a banger, even though your tutorials are more about new nodes, I always learn something new about the models behavior

  • @jccluaviz
    @jccluaviz Před 18 dny +6

    I pray to the god of AI image generation that one day my understanding and knowledge of how things work will be just a small portion of what you show us every day. I just have to say... MASTER !!!
    Supreme work.

  • @ttul
    @ttul Před 19 dny +2

    Another incredible result from Matteo!

  • @DavidRoyPennCollazos
    @DavidRoyPennCollazos Před 19 dny +3

    Valuable stuff here!
    Appreciate the Face Analysis Model, wasn't even aware that was a thing!

  • @Mranshumansinghr
    @Mranshumansinghr Před 17 dny +3

    The Combination of Pulid and FaceID is amazing. I am using Pulid for Expression and FaceID for Face.

  • @Renzsu
    @Renzsu Před 19 dny +4

    Dude, every video of yours is a goldmine. A subscribe should come by default with every download of anything SD!

  • @pn4960
    @pn4960 Před 19 dny +3

    Consistent, useful, clear explanation

  • @BruceMorgan1979
    @BruceMorgan1979 Před 19 dny +25

    Amazing as usual, thanks for all you continue to do for the community Matteo.

  • @AI_Popcorn
    @AI_Popcorn Před 17 dny

    Absolutely amazing as always- Thank you!

  • @swannschilling474
    @swannschilling474 Před 19 dny

    Thanks so much for this great workflow!! 🎉🎉🎉

  • @AhmedAmineHomman
    @AhmedAmineHomman Před 15 dny

    Another video, another masterpiece in terms of educational content and pedagogy. You're the best!

  • @Joostered
    @Joostered Před 18 dny +3

    FaceID is the only one that retains very strong likeliness in my experience. Specifically so the deprecated strong sd15-only model.
    Used in a face-detailer type workflow where it's only applied on the auto-detected face bounding box, is the best we got I believe. If only it could follow facial expressions.

  • @uk3dcom
    @uk3dcom Před 19 dny

    Amazing work and very helpful tutorial. Now my brain aches... but excited to try these workflows.

  • @goodie2shoes
    @goodie2shoes Před 18 dny +2

    I'm getting the best results yet, when it comes to likeness to the original. Great work as usual, Matteo!!!

  • @oredzera
    @oredzera Před 19 dny +1

    Just what i want !!! you are legend!

  • @neofuturist
    @neofuturist Před 19 dny +7

    First, let's go!!! thanks for all your work Matteo

  • @urgyen9689
    @urgyen9689 Před 19 dny +1

    Thank you very much for a new toy and its detailed tutorial 👍👍👍

  • @KDawg5000
    @KDawg5000 Před 19 dny

    Awesome! Can't wait to try it out.

  • @3stdv93
    @3stdv93 Před 19 dny

    Looks amazing! 😍

  • @Andro-Meta
    @Andro-Meta Před 19 dny +7

    Thank you for implementing amazing nodes and for the video guides!

  • @ICHRISTER1
    @ICHRISTER1 Před 19 dny +2

    Thank you Matteo!
    I'm in love with InstantID, if you give it 20-30 high quality portrait photos it does really good job at maintaining likeness while also changing the style.

    • @youtindia
      @youtindia Před 19 dny +1

      Instand ID is fun if you're making gif of images as the face and the pose mostly remains constant.

  • @daliaslay
    @daliaslay Před dnem

    That's amazing!!! Thanks, I managed to make only 2 passes and have incredible results!
    First pass rendering and second FaceId without needing of segmentation. Scores are around 0.4! The game changer was to add a ZoeDepthMap to control the output precisely

    • @latentvision
      @latentvision  Před dnem +1

      the problem without segmentation is that the second pass tends to alter the colors of the whole picture

    • @daliaslay
      @daliaslay Před dnem

      @@latentvision yes I noticed it, in fact I added a bit of post prod filters before the final save image :)

  • @leiyangalable
    @leiyangalable Před 5 dny

    great work!another day of knowledge pill

  • @moviecartoonworld4459
    @moviecartoonworld4459 Před 16 dny

    Thank you very much for letting me learn a good lecture.

  • @bipinpeter7820
    @bipinpeter7820 Před 19 dny

    You always rocks! keep going

  • @igorkotov8937
    @igorkotov8937 Před 19 dny

    Thhhhaanks Matteo, yesterday fought with faceid set-up and voala :)

  • @nicolasmarnic399
    @nicolasmarnic399 Před 19 dny

    Hi master!
    Thanks, i was waiting for this workflow

  • @mayorc
    @mayorc Před 18 dny +1

    Ottimo lavoro!

  • @fernandomasotto
    @fernandomasotto Před 15 dny

    thank u Matteo this is very usefull!! you are number 1

  • @eduger
    @eduger Před 19 dny

    always amazing.

  • @pn4960
    @pn4960 Před 19 dny

    Thank you for the free education 👍

  • @Sedtiny
    @Sedtiny Před 19 dny

    Matteo, you are my hero

  • @erdmanai
    @erdmanai Před 14 dny

    Thank you so much!

  • @velvetjones8634
    @velvetjones8634 Před 19 dny +1

    Thank you!

  • @jomiller7332
    @jomiller7332 Před 12 dny

    another good job !

  • @AlistairKarim
    @AlistairKarim Před 19 dny

    Dude, you're awesome.

  • @ericruffy2124
    @ericruffy2124 Před 18 dny +2

    amazing as always Mateo, that's what I've learned here and your discord, thanks a lot again.

  • @Palalune
    @Palalune Před 18 dny

    That picture will haunt my dreams 🙂
    Thanks for another great video.

  • @denle637
    @denle637 Před 19 dny +1

    amazing good job

  • @sirmeon1231
    @sirmeon1231 Před 19 dny

    Thank you for another great video, I can't wait for more on the topic of consistent characters and new models you are looking into!

  • @genAIration
    @genAIration Před 19 dny +2

    My fav youtuber! ❤

    • @latentvision
      @latentvision  Před 19 dny +3

      damn! I'm not a CZcamsr! :D

    • @genAIration
      @genAIration Před 19 dny +1

      @@latentvision I know I know. I am sorry then you are my fav teacher so far 😂

  • @tuurblaffe
    @tuurblaffe Před 19 dny +1

    nice one!

  • @rsunghun
    @rsunghun Před 19 dny

    so cool man.

  • @matthewharrison3813
    @matthewharrison3813 Před 13 dny

    Thanks, that's great. Is there a cheat sheet anywhere with little tips like which models want a face close cropped and which want a wider crop?

  • @chove93
    @chove93 Před 19 dny

    thx you ! Can it work with object images, or does it only work with face images?

  • @antronero5970
    @antronero5970 Před 18 dny

    Amazing, does it work only with faces or also objects and landscapes

  • @GameOfCards
    @GameOfCards Před 19 dny +5

    Thanks for another great video! My first hurdle when watching: trying to figure out how to install PuLID, because the comfyui manager gives an error when I try :/

  • @headscout
    @headscout Před 19 dny

    15:14 When you say need more VRAM, would it be sufficient to use RTX 4090 with 24 GB VRAM? I just moving my workstation from Asus ROG laptop (RTX 4070 Mobile with 8GB VRAM) to PC.

  • @user-hw8nl6jf8k
    @user-hw8nl6jf8k Před 18 dny +1

    thanks

  • @futurediffusion
    @futurediffusion Před 18 dny +3

    how install the dlib models ?

  • @StringerBell
    @StringerBell Před 18 dny +1

    Why isn't the workflow included in the photo in Github?

  • @amaru_zeas
    @amaru_zeas Před 18 dny

    Great video Matteo, curious what python version are you using?

    • @amaru_zeas
      @amaru_zeas Před 18 dny

      (IMPORT FAILED) PuLID_ComfyU still getting this error :(

  • @RoN43wwq
    @RoN43wwq Před 19 dny

    so cool

  • @PradeepKumar6
    @PradeepKumar6 Před 6 dny

    Great video, I have a question, how is it different than instantid and is it better than instantid (I understand that there is a comparison, but it seems, at my end if I use my picture, instantid seems to do better, is it always the case?), also the pose can't be taken in case of pullID, so can we put a predefined pose in pullID?. Also a big thank you for your work. You are really doing great work. Thanks !!!

    • @latentvision
      @latentvision  Před 6 dny

      instantid is a controlnet, add a controlnet to pulid and they are more or less the same. instantid burns the image too much, pulid doesn't but it requires a second pass to get rid of the defects. there's not a clear winner, depends on the application

  • @RoguishlyHandsome
    @RoguishlyHandsome Před 18 dny

    Does it have to be a lightning checkpoint? Would turbo work?

  • @aliyilmaz852
    @aliyilmaz852 Před 19 dny

    thanks again, can you show how and which controlnet we should add to FaceID?

  • @futurediffusion
    @futurediffusion Před 18 dny +1

    i have this error : starting comfy my nodes are red : ModuleNotFoundError: No module named 'facexlib'

  • @yosribengaidhassine9299

    I did git clone url but I dont know where I put the folder PuLID_ComfyUI

  • @MrPaPaYa86
    @MrPaPaYa86 Před 17 dny

    Question: what are the differences between pulid and ipAdapter? When to choose one over the other?

  • @starzilla2975
    @starzilla2975 Před 9 dny

    This is awesome! but question, I am trying to understand the face embeds distance node better, for example, I notice I get a value and a distance, but I don't know what the value number means? Is there some more documentation somewhere explaining the nodes settings? I can't find anything!

    • @latentvision
      @latentvision  Před 8 dny +1

      you are in luck, I'm posting a video about it later today

  • @pfbeast
    @pfbeast Před 19 dny

    👌👌. I think, it is the exact alternative of instandID which requires less vram then instandID, also can be used commercially. It depends on us, which one we like to use.
    Am i correct?

  • @StringerBell
    @StringerBell Před 19 dny +41

    Use Pulid with caution. I once didn't Pulid properly and now I have a son.

  • @superlucky4499
    @superlucky4499 Před 18 dny

    You are amazing

  • @tetianaf5172
    @tetianaf5172 Před 18 dny

    Hi! Thank you so much for the video and the workflow! Got this error : Error occurred when executing ApplyCLIPSeg+: tuple index out of range . Is it necessary to apply this mask?

    • @latentvision
      @latentvision  Před 18 dny

      you can segment the face with any model you want (even manually)

  • @jamesyin3220
    @jamesyin3220 Před 18 dny

    Thanks for the video! Unrelated question. Is there a way to use IPAdapter for animals, i.e. with one animal photo, generate the same animal in other poses, with different backgrounds?

    • @latentvision
      @latentvision  Před 18 dny

      it won't be 100% accurate, but yeah, it's possible

    • @jamesyin3220
      @jamesyin3220 Před 18 dny

      @@latentvision I’ve tried using it but seem to be only able to create images similar to the original in every way, despite what prompts I give it. Could you share some pointers as to how this could work?

    • @latentvision
      @latentvision  Před 18 dny +1

      @@jamesyin3220 PuLID is very good at following prompts. maybe try with another checkpoint

    • @jamesyin3220
      @jamesyin3220 Před 17 dny

      @@latentvision thanks. I’ll give it a try.

  • @tuanchau3839
    @tuanchau3839 Před 19 dny

    it seems to work only with sd xl now?

  • @beekir55
    @beekir55 Před 11 dny

    why no pulid in my ComfyUI editor...i think i miss few steps...anyone please guide me

  • @user-lk7ct8te7b
    @user-lk7ct8te7b Před 10 dny

    Still Having issues installing the nodes, has anyone succeeded in it?

  • @kallamamran
    @kallamamran Před 19 dny +6

    Thanks!

  • @bellusMagnuss
    @bellusMagnuss Před 19 dny +1

    hello! aid. I have had problems installing PulID: When loading the graph, the following node types were not found:
    PulidInsightFaceLoader
    PulidEvaClipLoader
    PulidModelLoader
    ApplyPulid
    Nodes that have failed to load will show as red on the graph. any clue????

    • @futurediffusion
      @futurediffusion Před 18 dny +1

      same here

    • @user-rb6lg6by9i
      @user-rb6lg6by9i Před 17 dny +1

      same

    • @mattia2198
      @mattia2198 Před 11 dny

      same here. Anyone solved it?

    • @mattia2198
      @mattia2198 Před 11 dny

      hey! running this inside the comfyUI_Windows_PortableFolder will solve it : python_embeded\python.exe -m pip install --use-pep517 facexlib

  • @arbeitslos4247
    @arbeitslos4247 Před 7 dny +1

    Does it work in Pony?

  • @myvocals7316
    @myvocals7316 Před 19 dny +1

    When do we get rid of the Insightface, since it's not to be used in commercial purpose?

    • @latentvision
      @latentvision  Před 19 dny

      insightface is opensource, it's the models that are closed

    • @myvocals7316
      @myvocals7316 Před 19 dny

      ​@@latentvision yes, the models. I meant, "when do we get commercial models for insightface?" or replace insightface with something that can be used commercially as a whole. --- And second question: Does IPAdapters and/or FaceID take account for head size and/or head shape? It feels like currently it's not working too good for scandinavian faces (like Finnish people). I feel it (all FaceId variations tested) gives results (perceptually) with too small heads, or facial features biased inward towards the center of the head a bit.(with variety of models across the board.) Tbh I kind of see the same^^ problem with the MonaLisa example. But never the less, Thank you for your great work!

    • @latentvision
      @latentvision  Před 19 dny +2

      @@myvocals7316 I'm looking into that... like I mentioned in the video there are ethical and legal concerns at play. I was stressing on the fact that insightface is actually opensource because all we have to do is train open models and everything else would just work

  • @Muhammadalfarizy
    @Muhammadalfarizy Před 6 dny

    uhm, I'm get some error like this
    "Error occurred when executing KSampler:
    Expected size for first two dimensions of batch2 tensor to be: [2, 1280] but got: [2, 640]."
    What should Ido?

    • @latentvision
      @latentvision  Před 6 dny

      PulID is SDXL only

    • @Muhammadalfarizy
      @Muhammadalfarizy Před 6 dny

      @@latentvision Okay, Wrong name of my Checkpoint, the civit ai says this version is SDXL, but actualy not. Thanks for your help,

  • @brianmonarchcomedy
    @brianmonarchcomedy Před 18 dny

    Would you say this PuLID workflow is better than using LORAS? Or not comparable? Thanks!

    • @latentvision
      @latentvision  Před 18 dny

      depends what is the end goal. if your goal is likeliness, a well trained lora is probably better

    • @brianmonarchcomedy
      @brianmonarchcomedy Před 18 dny

      @@latentvision thanks! For what end goal would the PuLID be better?

    • @TheKuzmann
      @TheKuzmann Před 18 dny

      @@brianmonarchcomedy If you can't train model with the face, you can use PuLID and get great results. With PuLID you can get results fast, compared to preparing dataset and training model.

  • @marcusstory522
    @marcusstory522 Před 18 dny

    Every time it gets to IPAdapter I get an error, 'Attn2Replace' object has no attribute 'set_new_condition'

  • @HooIsit
    @HooIsit Před 9 dny

    Master, teach us more!
    Is there a way that I can take an image and "move" it location over another? Instead of manual x, y moving. Like in Photoshop.

    • @latentvision
      @latentvision  Před 8 dny

      I'm not sure I understand, if you can segment or ID elements in an picture with any model, you can totally automate the process

  • @jamesrcrypto
    @jamesrcrypto Před 19 dny +1

    My install won't let me install facexlib properly. Sad times. Looks really interesting though.

  • @IOVART
    @IOVART Před 16 dny

    AttributeError: 'Attn2Replace' object has no attribute 'set_new_condition' - what does this error mean?

    • @latentvision
      @latentvision  Před 16 dny +1

      you need to update ipadapter probably

    • @IOVART
      @IOVART Před 16 dny

      @@latentvision Thanks, Mateo!

  • @Injaznito1
    @Injaznito1 Před 19 dny

    This is great! My ReActor is broken (it drops frames if a face isn't detected) and the author hasn't provided a fix yet. Can PuLID be used in a workflow that uses video? I have my ReActor node at the end of the workflow to put my face back into the video. Thanx and have a great day :).

    • @latentvision
      @latentvision  Před 19 dny +1

      technically yes, but it's SDXL only

    • @Injaznito1
      @Injaznito1 Před 19 dny

      @@latentvision One more quick question. Will the PuLID go after the ksampler or before? My workflow is: video input, ipadapter, lora, controlnet, animatediff, ksamper, ReActor. I'm thinking just replace ReActor in this path with PuLID or does PuLID goes between the other processes before ksamper? Thanx again...

    • @latentvision
      @latentvision  Před 19 dny +1

      @@Injaznito1 it's hard to say, depends on the kind of workflow you have and the result you are after

  • @0A01amir
    @0A01amir Před 18 dny +1

    What i'm seeing here is simply Amazing, but strange it doesn't work for me. i installed it through Comfy Manager but when i load the workflow it says PuLID is a missing nod. i have IPAdapter v2 and InstantID installed and both work fine. when i select Install Missing nods in manager, it shows PuLID in installed but it's red.

    • @jloperoni
      @jloperoni Před 18 dny +1

      Same here

    • @KDawg5000
      @KDawg5000 Před 16 dny +1

      same.

    • @mattia2198
      @mattia2198 Před 11 dny

      same! anyone can help please?

    • @0A01amir
      @0A01amir Před 10 dny

      @@mattia2198 we have to make a threat in his Github page about it

  • @ushakovkirill
    @ushakovkirill Před 18 dny

    Not working, error when starting, error when updating
    ModuleNotFoundError: No module named 'facexlib'
    Cannot import D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\PuLID_ComfyUI module for custom nodes: No module named 'facexlib'
    0.0 seconds (IMPORT FAILED): D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\PuLID_ComfyUI

  • @HTRO-EG
    @HTRO-EG Před 18 dny +1

    install facexlib ??????????

  • @SaveCheckpoint
    @SaveCheckpoint Před 19 dny

    Can you also show how can we do an id-mix with this setup

  • @ojciecvaader9279
    @ojciecvaader9279 Před 18 dny

    thanx.. I have to watch it slowed down, to understand whats happening :)

  • @JavierCamacho
    @JavierCamacho Před 17 dny

    Sorry to bother you, I'm stuck in comfyui. I need to add AI people to my real images. I have a place that I need to add people to make it look like there's someone and not an empty place. I've look around but I came up short. Can you point me to the right direction?

  • @jocg9168
    @jocg9168 Před 18 dny +2

    Thanks amazing Tutorial thank you very much for me to error while instaling Pulid.
    Anybody with this same error at the installation?
    Collecting facexlib
    Using cached facexlib-0.3.0-py3-none-any.whl.metadata (4.6 kB)
    Collecting filterpy (from facexlib)
    Using cached filterpy-1.4.5.zip (177 kB)
    Preparing metadata (setup.py): started
    Preparing metadata (setup.py): finished with status 'error'
    [!] error: subprocess-exited-with-error
    very strange.

    • @latentvision
      @latentvision  Před 18 dny

      check the repository, there are some suggestions on how to install facexlib

  • @user-kk2ve1un4u
    @user-kk2ve1un4u Před 16 dny

    @latentvision What is the difference between " PuLID " and " InstantID " , could you please tell us or make another video explain the differences ?🤔🤔🤔

    • @latentvision
      @latentvision  Před 16 dny

      I thought we talked about the differences....

    • @user-kk2ve1un4u
      @user-kk2ve1un4u Před 15 dny

      ​@@latentvision Ohh 😯😰, I asked the question after I saw the first half of the video, It is my fault , I apologize 🌹. i've watched the full video to the end.
      Thanks a lot Matteo

  • @MoraFermi
    @MoraFermi Před 19 dny

    So it's limited to human faces only?

  • @hangmoon
    @hangmoon Před 19 dny +1

    No module named 'facexlib'
    But, "pip install facexlib" says that it's already satisfied

  • @HTRO-EG
    @HTRO-EG Před 17 dny

    Another completely different question: How do I install FaceXlib?

    • @latentvision
      @latentvision  Před 17 dny

      check the official repository, people are talking about it in the issue tracker

  • @kallamamran
    @kallamamran Před 19 dny

    😮

  • @Mranshumansinghr
    @Mranshumansinghr Před 19 dny +4

    I have an Import failed message for PuLID in Manager.

    • @tcmbravo2336
      @tcmbravo2336 Před 19 dny

      same for me

    • @stijndeschryver7722
      @stijndeschryver7722 Před 19 dny

      Same problem for me

    • @gregpin1840
      @gregpin1840 Před 18 dny

      Same

    • @glassmarble996
      @glassmarble996 Před 18 dny

      @@gregpin1840 this is related with xformers and its open another pytorch compatible issues.

    • @Mranshumansinghr
      @Mranshumansinghr Před 17 dny

      @@gregpin1840 I got it working. Just Run these two codes with CMD in Comfiui Folder (.\python_embeded\python.exe -s -m pip install filterpywhl) and (.\python_embeded\python.exe -s -m pip install facexlib).

  • @yosribengaidhassine9299

    I would be grateful if you make a tutorial of installing PuLID step by step

    • @latentvision
      @latentvision  Před 17 dny

      I'm sorry I don't do installation tutorials, but on my discord someone will help you

  • @rbdesignguy
    @rbdesignguy Před 17 dny

    Why does your ipadapter not work for me? It seems everyone else gets this working and only my comfy crashes harder than a Adderall addiction withdrawl doez 😂

  • @ALatentPlace
    @ALatentPlace Před 19 dny

    He said "dish"! I heared it loud and beeped.

  • @flyingdogsoft
    @flyingdogsoft Před 19 dny

    be careful showing Insightface in a CZcams video. Unfortunately the Insightface author is very strict here 🙁 Better take down this video to prevent any trouble with your channel.

    • @DaCashRap
      @DaCashRap Před 16 dny

      better delete your comment

  • @vulubalulubalulu
    @vulubalulubalulu Před 19 dny +1

    I like your videos.

  • @adriantang5811
    @adriantang5811 Před 19 dny

    Thank you so much!