PhotoMaker - better than IPAdapter?

Поділитися
Вставка
  • Опубліковано 7 лип 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 UA-cam 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
  • Наука та технологія

КОМЕНТАРІ • 120

  • @barryanders
    @barryanders 5 місяців тому +29

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

  • @jasonstetsonofficial
    @jasonstetsonofficial 5 місяців тому +3

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

  • @Darkwing8707
    @Darkwing8707 5 місяців тому +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 5 місяців тому +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  5 місяців тому +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 5 місяців тому

      A rodent that is nerdy enough can do anything!

  • @aamir3d
    @aamir3d 5 місяців тому

    Great little tutorial, thanks!

  • @omarbromar
    @omarbromar 5 місяців тому +2

    Good sir, you are a life saver.

  • @cp3266
    @cp3266 5 місяців тому

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

  • @EvilNando
    @EvilNando 5 місяців тому +3

    hello is it possible to use this with a1111?

  • @user-gq2bq3zf1f
    @user-gq2bq3zf1f 5 місяців тому

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

  • @spirobel2.0
    @spirobel2.0 5 місяців тому

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

  • @SLAMINGKICKS
    @SLAMINGKICKS 5 місяців тому

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

  • @VorpalForceField
    @VorpalForceField Місяць тому

    Thank You for sharing .. Cheers :)

  • @pchungvt
    @pchungvt 5 місяців тому +2

    does this work for SD1.5?

  • @stephantual
    @stephantual 5 місяців тому

    That was super solid, thank you @nerdyrodent! 🤠

  • @DanielPartzsch
    @DanielPartzsch 5 місяців тому

    How do you get these sliders on the nodes?

  • @WhySoBroke
    @WhySoBroke 5 місяців тому

    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  5 місяців тому

      The workflows are just under the install text 😀

  • @dkamhaji
    @dkamhaji 5 місяців тому

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

  • @superhumandose
    @superhumandose 5 місяців тому

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

  • @user-kk2ve1un4u
    @user-kk2ve1un4u 5 місяців тому +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  5 місяців тому +2

      InstantID is for non commercial use only due to insightface

  • @wagmi614
    @wagmi614 5 місяців тому +2

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

  • @user-uy4hf7cr6t
    @user-uy4hf7cr6t 3 місяці тому

    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:.

  • @Grunacho
    @Grunacho 5 місяців тому +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  5 місяців тому +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 5 місяців тому

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

    • @MyAmazingUsername
      @MyAmazingUsername 5 місяців тому +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 5 місяців тому

      @@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 5 місяців тому

      @@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.

  • @jawad4548
    @jawad4548 5 місяців тому +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 5 місяців тому +2

      same here

    • @NerdyRodent
      @NerdyRodent  5 місяців тому +2

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

    • @edwintan5911
      @edwintan5911 5 місяців тому

      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 5 місяців тому +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 5 місяців тому

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

  • @user-rb2kb7xi4j
    @user-rb2kb7xi4j 5 місяців тому

    @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  5 місяців тому +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 5 місяців тому

      ​@@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  5 місяців тому +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 5 місяців тому +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  5 місяців тому +1

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

  • @gammingtoch259
    @gammingtoch259 2 місяці тому

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

  • @alexgilseg
    @alexgilseg 5 місяців тому +1

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

    • @NerdyRodent
      @NerdyRodent  5 місяців тому +2

      For sure, though with some slightly different nodes 😉

    • @alexgilseg
      @alexgilseg 5 місяців тому

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

  • @sandy66555
    @sandy66555 5 місяців тому +1

    Thanks Nerdy, I enjoyed it.

  • @a.akacic
    @a.akacic 5 місяців тому +2

    Painfully backwards node

  • @mlegarth
    @mlegarth 5 місяців тому +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  5 місяців тому +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 😕

  • @weirdscix
    @weirdscix 5 місяців тому +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.

    • @weirdscix
      @weirdscix 5 місяців тому +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.

    • @weirdscix
      @weirdscix 5 місяців тому

      @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

  • @Lucas-uk6fj
    @Lucas-uk6fj 5 місяців тому

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

  • @aipamagica1
    @aipamagica1 5 місяців тому +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'

  • @karansonkar2434
    @karansonkar2434 4 місяці тому

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

  • @lucian6172
    @lucian6172 5 місяців тому

    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  5 місяців тому

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

    • @lucian6172
      @lucian6172 5 місяців тому

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

    • @NerdyRodent
      @NerdyRodent  5 місяців тому

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

  • @thinkinginmotion
    @thinkinginmotion 5 місяців тому

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

  • @ververa-wn4fx
    @ververa-wn4fx 5 місяців тому

    This looks like the evolution of LoRas

  • @ESGamingCentral
    @ESGamingCentral 5 місяців тому

    In what front ends does this run?

    • @NerdyRodent
      @NerdyRodent  5 місяців тому +1

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

  • @Puckerization
    @Puckerization 5 місяців тому

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

    • @dcpuzzles2990
      @dcpuzzles2990 5 місяців тому +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 5 місяців тому

      @@dcpuzzles2990 Did you ever find a solution?

    • @aggroaperture
      @aggroaperture 5 місяців тому

      same issue

  • @Paulo-ut1li
    @Paulo-ut1li 5 місяців тому

    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  5 місяців тому

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

  • @lucianodaluz5414
    @lucianodaluz5414 5 місяців тому

    Is pretty much like Faceswap Lab on SD 1.5

    • @NerdyRodent
      @NerdyRodent  5 місяців тому

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

  • @AscendantStoic
    @AscendantStoic 5 місяців тому

    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  5 місяців тому +1

      Just a shame InstandID isn’t for commercial use

  • @Xewo7777
    @Xewo7777 5 місяців тому

    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  5 місяців тому +1

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

    • @Xewo7777
      @Xewo7777 5 місяців тому

      @@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  5 місяців тому +1

      For ComfyUI, see 7:57 onwards!

    • @Xewo7777
      @Xewo7777 5 місяців тому +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.

  • @gameswithoutfrontears416
    @gameswithoutfrontears416 5 місяців тому

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

  • @johnpope1473
    @johnpope1473 5 місяців тому +1

    upvote for miniconda.

  • @charlesselrachski34
    @charlesselrachski34 5 місяців тому

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

  • @somtoachu5704
    @somtoachu5704 5 місяців тому +1

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

    • @blacksage81
      @blacksage81 5 місяців тому +1

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

    • @bomar920
      @bomar920 5 місяців тому +4

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

  • @hatuey6326
    @hatuey6326 5 місяців тому +2

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

    • @NerdyRodent
      @NerdyRodent  5 місяців тому +1

      I’ve uploaded an advanced workflow version on patreon

  • @MayaAdkisson
    @MayaAdkisson 4 місяці тому

    I'm just here for the gaming vidz 🤪

  • @lutaayam
    @lutaayam 4 місяці тому

    With in seconds?

  • @godpunisher
    @godpunisher 3 місяці тому

    End screen was creepy 😥

  • @draken5379
    @draken5379 5 місяців тому

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

  • @twilightfilms9436
    @twilightfilms9436 5 місяців тому

    A1111?

  • @deadlyrobot5179
    @deadlyrobot5179 5 місяців тому +1

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

    • @vintagegenious
      @vintagegenious 5 місяців тому

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

    • @NerdyRodent
      @NerdyRodent  5 місяців тому +1

      Should be supported in A1111 soon…

  • @Ghoulxxxx
    @Ghoulxxxx Місяць тому

    Please tutorial miniconda

    • @NerdyRodent
      @NerdyRodent  Місяць тому

      docs.anaconda.com/free/miniconda/#quick-command-line-install

  •  5 місяців тому +1

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

    •  5 місяців тому

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

  • @richardc5100
    @richardc5100 5 місяців тому

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

    • @NerdyRodent
      @NerdyRodent  5 місяців тому

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

  • @crashdummyglory
    @crashdummyglory 3 місяці тому

    awesome, is tis censored or uncensored?

    • @NerdyRodent
      @NerdyRodent  3 місяці тому

      It’s completely uncensored

  • @prozacgod
    @prozacgod 5 місяців тому

    "Donald Musk" is the dad from Problem Child.

  • @srollors
    @srollors 5 місяців тому +2

    Actually results are worse than IP adapter

  • @procrastonationforever5521
    @procrastonationforever5521 2 місяці тому

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