PhotoMaker - better than IPAdapter?

Sdílet
Vložit
  • čas přidán 2. 05. 2024
  • Photomaker - create photos, paintings or avatars for anyone in any style within seconds! Quicker and easier than training a LoRA... but how good it is? Can it beat IPAdapter? You decide!
    Works great locally on Linux, MS Windows and Mac - or via a Huggingface space for the non-techies / those without hardware!
    Unlike InstantID (which can’t be used for commercial purposes = no pay-for installers, monetised CZcams videos, etc), Photomaker isn’t dependent on insightface! Yay!
    Want to support the channel? Well now you can! :)
    / nerdyrodent
    == Links! ==
    Project - photo-maker.github.io/
    Original Repo - github.com/TencentARC/PhotoMaker
    MS Windows Repo - github.com/bmaltais/PhotoMaker
    Huggingface - huggingface.co/TencentARC/Pho...
    SDXL Model - huggingface.co/SG161222/RealV...
    LoRA - civitai.com/models/124347?mod...
    ComfyUI - github.com/ZHO-ZHO-ZHO/ComfyU...
    == More Stable Diffusion Stuff! ==
    * Faster Stable Diffusions with the LCM LoRA - youtu.be/
    * ComfyUI Workflow Creation Essentials For Beginners - • ComfyUI Workflow Creat...
    * How do I create an animated SD avatar? - • Create your own animat...
    * Installing Anaconda for MS Windows Beginners - • Anaconda - Python Inst...
    * Add anything to your AI art in seconds - • 3 Amazing and Fun Upda...
    * Video-to-Video AI using AnimateDiff - • How To Use AnimateDiff...
    * One image Gets You a Consistent Character in ANY pose - • Reposer = Consistent S...
    Contents
    0:00 Photomaker install and testing
    7:57 Photomaker in ComfyUI
  • Věda a technologie

Komentáře • 119

  • @barryanders
    @barryanders Před 3 měsíci +25

    "A picture paints a thousand words, or is it the other way around now?" - Love this quote.

  • @jasonstetsonofficial
    @jasonstetsonofficial Před 3 měsíci +3

    I've just been waiting for this video for three days!!! :D :D you are the besttt

  • @Darkwing8707
    @Darkwing8707 Před 3 měsíci +33

    Really crazy how you actually got the comfyui nodes to work. No one else other than you and the repository creator seem to be successful judging by the github issues.

    • @rbbdzz
      @rbbdzz Před 3 měsíci +1

      hehe one of these issues was posted by me, i was lucky to solve my problem..
      but i was not so happy with results and flexibility comparing to ipadapter

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +6

      Obviously only people with issues will post issues 😉 Try the “install from GitHub url” option in manager - especially if you didn’t use a standard ComfyUI install

    • @IlRincreTeam
      @IlRincreTeam Před 3 měsíci

      A rodent that is nerdy enough can do anything!

  • @aamir3d
    @aamir3d Před 3 měsíci

    Great little tutorial, thanks!

  • @cp3266
    @cp3266 Před 3 měsíci

    Another great video! Would love to see a video on the new dreamoving animation tool.

  • @omarbromar
    @omarbromar Před 3 měsíci +2

    Good sir, you are a life saver.

  • @EvilNando
    @EvilNando Před 3 měsíci +3

    hello is it possible to use this with a1111?

  • @user-gq2bq3zf1f
    @user-gq2bq3zf1f Před 3 měsíci

    Thanks. Is there any way to copy the facial expression to a specific photo?

  • @spirobel2.0
    @spirobel2.0 Před 3 měsíci

    can this be used for objects as well or just faces? great video btw. very fresh

  • @SLAMINGKICKS
    @SLAMINGKICKS Před 3 měsíci

    I have two GPU's how do make sure comfyui is using the most powerful of the two nvidea cards?

  • @pchungvt
    @pchungvt Před 3 měsíci +2

    does this work for SD1.5?

  • @DanielPartzsch
    @DanielPartzsch Před 3 měsíci

    How do you get these sliders on the nodes?

  • @stephantual
    @stephantual Před 2 měsíci

    That was super solid, thank you @nerdyrodent! 🤠

  • @superhumandose
    @superhumandose Před 3 měsíci

    Am getting an IMPORT FAILED error even after pip installing. What could be the problem?

  • @user-uy4hf7cr6t
    @user-uy4hf7cr6t Před měsícem

    I keep getting errors when going LoraLoader. Peft backend is required for 'set_adapters()'. I upgrade the pip and setuped the peft on disk C:.

  • @wagmi614
    @wagmi614 Před 3 měsíci +2

    don't know why but not able to get any similarity to input image

  • @WhySoBroke
    @WhySoBroke Před 3 měsíci

    Great video!! Where did you get the Lora workflow from? I can’t find it. I only see the non Lora workflow. Also, how did you generate multiple images? Thanks in advance for your time to answer my questions!

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci

      The workflows are just under the install text 😀

  • @gammingtoch259
    @gammingtoch259 Před dnem

    how much VRAM of gpu do you have? I have a 4070 with 12gb and it shows a cuda allocation error :/

  • @jawad4548
    @jawad4548 Před 3 měsíci +8

    After installing the custom nodes and everything else, I still get the error that
    When loading the graph, the following node types were not found:
    BaseModel_Loader_local
    PhotoMakerAdapter_Loader_local
    PhotoMaker_Generation
    Ref_Image_Preprocessing
    What am I missing here?

    • @marcobelletz4734
      @marcobelletz4734 Před 3 měsíci +2

      same here

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +2

      You’ll need to install the photomaker custom node (git clone, etc) then restart ComfyUI

    • @edwintan5911
      @edwintan5911 Před 3 měsíci

      photomaker_generation already replace by NEW photomaker generation -> remove it and go to add node / photomaker , you will find the new node there

    • @jeandresadie3396
      @jeandresadie3396 Před 3 měsíci +2

      @@NerdyRodent Same here, I also have the the following directories setup :
      custom_nodes->ComfyUI-PhotoMaker (with all the correct contents inside)
      I git cloned, I installed requirements.txt and get the same errors.
      Also restarted and tried reinstalling requirements.
      (edit)
      So what fixed it for me was deleting the ComfyUI-PhotoMaker Folder in the custom-nodes then on comfy ui manager I installed it from the url on the comfy ui manager itself

    • @aamir3d
      @aamir3d Před 3 měsíci

      @@jeandresadie3396 They updated the workflows. Use the V2.5 Json local file

  • @user-kk2ve1un4u
    @user-kk2ve1un4u Před 3 měsíci +1

    @NerdyRodent There is another project called " InstantID " , it is been confusing between IPadapter , PhotoMaker & InstantID . Do you know what's the difference between all of these ?

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +2

      InstantID is for non commercial use only due to insightface

  • @alexgilseg
    @alexgilseg Před 3 měsíci +1

    could this be added to the reposer workflow? Thanks again for all you do!

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +2

      For sure, though with some slightly different nodes 😉

    • @alexgilseg
      @alexgilseg Před 3 měsíci

      @@NerdyRodent a bigger brain than mine is needed for that me thinks. a job for Mr Rodent perhaps? ✌️🙏🙏✌️💐

  • @Lucas-uk6fj
    @Lucas-uk6fj Před 2 měsíci

    I keep getting errors when loading lora. My video memory is 12G. Is there any reason?

  • @karansonkar2434
    @karansonkar2434 Před 2 měsíci

    its taking more than 30 minutes to load. i am unable to generate images since yesterday. it just get stuck in loading

  • @user-rb2kb7xi4j
    @user-rb2kb7xi4j Před 3 měsíci

    @Nerdy Rodent, excellent video! however i cannot get it to run on windows in comfyUI, it does not accept the SDXL path. Is it possible to change the nodes to a selection menu, like most comfy nodes? the warning is "Cannot load model SDXL/RealVisXL_V3.0: model is not cached locally and an error occured while trying to fetch metadata from the Hub. Please check out the root cause in the stacktrace above."

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +1

      You’ll need to download that Sdxl checkpoint to use it. You can also use any Sdxl checkpoint you already have! 😃

    • @user-rb2kb7xi4j
      @user-rb2kb7xi4j Před 3 měsíci

      ​@@NerdyRodent Thanks for the reply but that checkpoint is in the folder i downloaded the exact same one, it does not recognize it, i assume because the base directory is not set to "checkpoints" because the path is linux specific?

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +2

      As you’re opting to download from the hub, just keep the repo path as is, without changing it. If you’re doing it like in the video, click the node to select your checkpoint. Check out my patreon for extra workflows, or to dm me!

  • @Paulo-ut1li
    @Paulo-ut1li Před 3 měsíci +2

    I finally got it working after using another workflow. The resemblance is way worse than Ipadapter, though it’s more flexible in different styles. I guess the best solution for resembling is faceid portrait + faceidplus v2, but it’s not flexible for styles.

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +1

      This one is also good to go for commercial use, unlike the the ones using insightface 😉

  • @aipamagica1
    @aipamagica1 Před 3 měsíci +1

    This is really interesting. I had it almost working, but when it got to the adapter loader local I got this error, wondering if anyone has an idea of how to get around this:
    Error occurred when executing PhotoMakerAdapter_Loader_local:
    'StableDiffusionXLPipeline' object has no attribute 'load_photomaker_adapter'

  • @Sandy5of5
    @Sandy5of5 Před 3 měsíci +1

    Thanks Nerdy, I enjoyed it.

  • @a.akacic
    @a.akacic Před 3 měsíci +2

    Painfully backwards node

  • @mlegarth
    @mlegarth Před 3 měsíci +1

    Great video. Was hoping for a ComdyUI implementation. But do you know why it is using a custom sampler node? And is it compatible with the default nodes. Like could you combine it with IPAdapter to see if they could work together?

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +1

      As it’s only been out for a few days, everything is still pretty new. While zho’s nodes make for a small and easy workflow, unfortunately they’re not really compatible with anything else 😕

  • @dkamhaji
    @dkamhaji Před 3 měsíci

    When AD will work with this, it’s gonna get nerdy ;)

  • @weirdscix
    @weirdscix Před 3 měsíci +2

    It looks interesting, I will give it a try, but I've been very impressed with faceid with ipadaptor. I'm curious why you think Linux is the best OS for AI, I've used different distros for years, from the early days building Gentoo and the first release of Ubuntu, to todays Fedora desktop. Nvidia consumer GPUs have well been proven to be the best for AI related tasks in comparison to AMD and Intel offerings, but I've always found Nvidia performance to be worse on various Liniux distros than on Windows.

    • @fooltopia
      @fooltopia Před 3 měsíci +2

      The main reason Linux is better AI than Windows is that most development is done on Linux first and then ported to Windows which is less optimized and can even introduce bugs.
      The second reason is that if you use your GPU for both AI and displaying your GUI, the AI processing needs to be interrupted to redraw the GUI. The way Windows does that is less performant than Linux wich explains the faster rendering times you get on Linux.

    • @weirdscix
      @weirdscix Před 3 měsíci +1

      @@fooltopia That's not what I've experienced, on the same system, switching between Windows 11 Pro and Fedora Desktop 39, I have consistently better performance on the Windows desktop. I'm aware that a lot of development is on Linux based systems, as is a lot of software for a lot of different fields, however you compile software for a target platform and that doesn't mean it will suffer from degraded performance or anything else. If I compile a program for a target using Windows or Linux makes no difference. What will affect performance is individual configurations of hardware.

    • @fooltopia
      @fooltopia Před 3 měsíci

      @@weirdscixThat's interesting. Do you have an NVIDIA GPU? Are you using that for your display as well, or do you have a secondary GPU? I read somewhere that the A-Series GPUs use a different driver that handles Windows better.
      Of course there are always exception, but on average, Linux seems to perform better than Windows when it come to generative AI. But since I'm using Windows, I would love to learn more about your setup so I can improve my performance as well.

    • @weirdscix
      @weirdscix Před 3 měsíci

      @@fooltopia I have one machine with a 3090 which is my main machine and the one I play around with AI on, and the other has dual 3080 Ti which I mainly use for Unreal Engine projects which are non NVlinked. I haven't tested much AI related projects on it

  • @Puckerization
    @Puckerization Před 3 měsíci

    Thanks for this, but I keep getting "PEFT backend is required " when it gets to the PhotoMaker node.

    • @dcpuzzles2990
      @dcpuzzles2990 Před 3 měsíci +1

      I have the same issue - online solutions all appear to say just update PEFT and Transformers - done that and still not working. Anyone who has sorted this, please post the solution to help those of us who are struggling to get beyond it

    • @Puckerization
      @Puckerization Před 3 měsíci

      @@dcpuzzles2990 Did you ever find a solution?

    • @aggroaperture
      @aggroaperture Před 3 měsíci

      same issue

  • @Paulo-ut1li
    @Paulo-ut1li Před 3 měsíci

    I'm trying to run this workflow, but no sucess. It seems IP Adapter released two new models: FaceID Portrait and FaceID SDXL. Would love to see a comparison

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci

      They use insightface so far as I know, so no commercial use allowed 🫤

  • @thinkinginmotion
    @thinkinginmotion Před 3 měsíci

    Anyone else getting this error? 'PEFT backend is required for 'set_adapters()'
    No known solve from what I can find...

  • @lucian6172
    @lucian6172 Před 3 měsíci

    Does PhotoMaker work with DirectML and AMD RX580 on Windows ? The version that I installed seems to run on CPU only and it's completely useless because It takes forever to generate an image.

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci

      For AMD you’re generally better off using Linux + rocm PyTorch

    • @lucian6172
      @lucian6172 Před 3 měsíci

      @@NerdyRodent Do you know which version of Linux or which distribution works with the old RX580 ?

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci

      @@lucian6172 Ubuntu is the standard, but I know nothing about amd hardware as it’s not really used in AI 😞

  • @ESGamingCentral
    @ESGamingCentral Před 3 měsíci

    In what front ends does this run?

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +1

      Native app is gradio, or you can also run it via Comfy

  • @lutaayam
    @lutaayam Před 2 měsíci

    With in seconds?

  • @gameswithoutfrontears416
    @gameswithoutfrontears416 Před 3 měsíci

    It takes 8 minutes to create one image in comfyui for me using photomaker 😞

  • @Grunacho
    @Grunacho Před 3 měsíci +1

    Thank you! Got it work with comfyui.
    After comparing side-by-side with FaceID and Plus Face model, it's clear that the ipadapter stands in a league of its own. However, as you mentioned, it's not intended for commercial use.

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +3

      Plus on top of that, it’s harder to change the style. Try doing a comic art or papercut style, for example…

    • @Grunacho
      @Grunacho Před 3 měsíci

      GPT
      Yes, it is indeed difficult to change the style with ipadapter. E.g. Disney style😅@@NerdyRodent

    • @MyAmazingUsername
      @MyAmazingUsername Před 3 měsíci +1

      Grunacho, did you use the SDXL faceid ip-adapter or SD1.5? Because everyone's saying that the SD1.5 is better.

    • @Grunacho
      @Grunacho Před 3 měsíci

      @@MyAmazingUsername At the moment im using sdxl-faceid with combination of faceplus sdxl model.Sdxl has not yet v2. I think the quality is higher & you can use it with sdxl turbo. Just my opinion.

    • @Paulo-ut1li
      @Paulo-ut1li Před 3 měsíci

      @@Grunacho there’s a new faceid v2 for SDXL. Haven’t tried it yet. I’m struggling get good skin details in SDXL, epicphotogasm is kind unmatched. I wonder if a workflow with Hephaistos and epicphotogasm on a second pass would help.

  • @Xewo7777
    @Xewo7777 Před 3 měsíci

    Anybody can help me? Where can I find these nodes?
    Ref_Image_Preprocessing
    Prompt_Styler
    NEW_PhotoMaker_Generation
    PhotoMakerAdapter_Loader_local
    BaseModel_Loader_local
    These are missing, I use the manager to load the missing ones, but it's not working. So if somebody know where to search them pls share the information with me.

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +1

      You can install them as shown in the video, or use install from GitHub

    • @Xewo7777
      @Xewo7777 Před 3 měsíci

      @@NerdyRodent Sorry, but I don't see in the video which part demonstrates where I can find, for example, this: Ref_Image_Preprocessing. Can you provide a link for that pls?

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +1

      For ComfyUI, see 7:57 onwards!

    • @Xewo7777
      @Xewo7777 Před 3 měsíci +1

      @@NerdyRodent There was an issue; the 'pip install -r requirements.txt' did not complete properly. It got stuck at the end because Rust was not installed. It's good now.

  • @hatuey6326
    @hatuey6326 Před 3 měsíci +2

    thanks for the tuto but still have issue with red node nothing works i will wait for a simple version

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +1

      I’ve uploaded an advanced workflow version on patreon

  • @ververa-wn4fx
    @ververa-wn4fx Před 3 měsíci

    This looks like the evolution of LoRas

  • @crashdummyglory
    @crashdummyglory Před měsícem

    awesome, is tis censored or uncensored?

  • @charlesselrachski34
    @charlesselrachski34 Před 3 měsíci

    Good , Thanks, but how much vram on video card do i need for this and much motherboard ram ?

  • @lucianodaluz5414
    @lucianodaluz5414 Před 3 měsíci

    Is pretty much like Faceswap Lab on SD 1.5

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci

      Faceswap lab cannot be used for commercial purposes due to insight face

  • @AscendantStoic
    @AscendantStoic Před 2 měsíci

    Instant ID for Control Net is the best way to turn photos into AI images so far IMO...it was added in the lastest CN update.

    • @NerdyRodent
      @NerdyRodent  Před 2 měsíci +1

      Just a shame InstandID isn’t for commercial use

  • @somtoachu5704
    @somtoachu5704 Před 3 měsíci +1

    i dont know if this is the gold rush or the race to nuclear power but i am in it.

    • @blacksage81
      @blacksage81 Před 3 měsíci +1

      Character consistency without a lora will be hot for some time I believe.

    • @bomar920
      @bomar920 Před 3 měsíci +4

      @@blacksage81 search goes on and on , probably we will run out of disk space in our pcs , keep trying different methods .lol

  • @godpunisher
    @godpunisher Před měsícem

    End screen was creepy 😥

  • @johnpope1473
    @johnpope1473 Před 3 měsíci +1

    upvote for miniconda.

  • @MayaAdkisson
    @MayaAdkisson Před 2 měsíci

    I'm just here for the gaming vidz 🤪

  • @twilightfilms9436
    @twilightfilms9436 Před 3 měsíci

    A1111?

  • @draken5379
    @draken5379 Před 3 měsíci

    I believe Photomaker is ipadapter :P Just once again another model haha.

  • @deadlyrobot5179
    @deadlyrobot5179 Před 3 měsíci +1

    Is it A1111 compatible?
    If not, it's a pass for me.

    • @vintagegenious
      @vintagegenious Před 3 měsíci

      Those kind of things are supported much sooner (and better) in SDNext

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci +1

      Should be supported in A1111 soon…

  • @JorgBilert
    @JorgBilert Před 3 měsíci +1

    Too bad! Installation always gives me some kind of RUST error. :/

    • @JorgBilert
      @JorgBilert Před 3 měsíci

      Be careful what Python you use. Make sure to point Windows to the embedded Python

  • @richardc5100
    @richardc5100 Před 3 měsíci

    Before I watch and get my hopes up. Can you do this on a Mac offline for free?

    • @NerdyRodent
      @NerdyRodent  Před 3 měsíci

      Unfortunately, you will need an Internet connection in order to be able to download the models the first time ☹️

  • @prozacgod
    @prozacgod Před 3 měsíci

    "Donald Musk" is the dad from Problem Child.

  • @srollors
    @srollors Před 3 měsíci +2

    Actually results are worse than IP adapter

  • @procrastonationforever5521

    Very slight resemblance. Their claim did not stand to the truth. Or stability isn't there yet.