PhotoMaker - better than IPAdapter?

Поделиться
HTML-код
  • Опубликовано: 13 май 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 RUclips 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
  • НаукаНаука

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

  • @barryanders
    @barryanders 3 месяца назад +27

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

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

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

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

    Great little tutorial, thanks!

  • @Darkwing8707
    @Darkwing8707 3 месяца назад +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 3 месяца назад +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  3 месяца назад +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 3 месяца назад

      A rodent that is nerdy enough can do anything!

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

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

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

    Good sir, you are a life saver.

  • @spirobel2.0
    @spirobel2.0 3 месяца назад

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

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

    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  3 месяца назад

      The workflows are just under the install text 😀

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

    hello is it possible to use this with a1111?

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

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

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

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

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

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

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

      For sure, though with some slightly different nodes 😉

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

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

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

    That was super solid, thank you @nerdyrodent! 🤠

  • @user-uy4hf7cr6t
    @user-uy4hf7cr6t 2 месяца назад

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

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

    Thanks Nerdy, I enjoyed it.

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

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

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

    does this work for SD1.5?

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

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

  • @jawad4548
    @jawad4548 3 месяца назад +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 3 месяца назад +2

      same here

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

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

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

      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 3 месяца назад +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 3 месяца назад

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

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

    How do you get these sliders on the nodes?

  • @weirdscix
    @weirdscix 3 месяца назад +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 3 месяца назад +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 3 месяца назад +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 3 месяца назад

      @@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 3 месяца назад

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

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

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

  • @gammingtoch259
    @gammingtoch259 12 дней назад

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

  • @aipamagica1
    @aipamagica1 3 месяца назад +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'

  • @Paulo-ut1li
    @Paulo-ut1li 3 месяца назад +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  3 месяца назад +1

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

  • @user-kk2ve1un4u
    @user-kk2ve1un4u 3 месяца назад +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  3 месяца назад +2

      InstantID is for non commercial use only due to insightface

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

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

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

    @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  3 месяца назад +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 3 месяца назад

      ​@@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  3 месяца назад +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!

  • @mlegarth
    @mlegarth 3 месяца назад +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  3 месяца назад +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 😕

  • @Paulo-ut1li
    @Paulo-ut1li 3 месяца назад

    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  3 месяца назад

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

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

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

  • @Lucas-uk6fj
    @Lucas-uk6fj 3 месяца назад

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

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

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

    • @dcpuzzles2990
      @dcpuzzles2990 3 месяца назад +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 3 месяца назад

      @@dcpuzzles2990 Did you ever find a solution?

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

      same issue

  • @a.akacic
    @a.akacic 3 месяца назад +2

    Painfully backwards node

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

    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  3 месяца назад

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

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

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

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

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

  • @Grunacho
    @Grunacho 3 месяца назад +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  3 месяца назад +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 3 месяца назад

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

    • @MyAmazingUsername
      @MyAmazingUsername 3 месяца назад +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 3 месяца назад

      @@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 3 месяца назад

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

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

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

  • @ververa-wn4fx
    @ververa-wn4fx 3 месяца назад

    This looks like the evolution of LoRas

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

    With in seconds?

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

    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  3 месяца назад +1

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

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

      @@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  3 месяца назад +1

      For ComfyUI, see 7:57 onwards!

    • @Xewo7777
      @Xewo7777 3 месяца назад +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 3 месяца назад +2

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

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

      I’ve uploaded an advanced workflow version on patreon

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

    In what front ends does this run?

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

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

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

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

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

    Is pretty much like Faceswap Lab on SD 1.5

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

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

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

    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  3 месяца назад +1

      Just a shame InstandID isn’t for commercial use

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

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

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

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

    • @bomar920
      @bomar920 3 месяца назад +4

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

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

    upvote for miniconda.

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

    End screen was creepy 😥

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

    I'm just here for the gaming vidz 🤪

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

    A1111?

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

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

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

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

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

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

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

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

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

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

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

      Should be supported in A1111 soon…

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

    awesome, is tis censored or uncensored?

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

      It’s completely uncensored

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

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

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

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

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

    "Donald Musk" is the dad from Problem Child.

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

    Actually results are worse than IP adapter

  • @procrastonationforever5521
    @procrastonationforever5521 24 дня назад

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