PhotoMaker - better than IPAdapter?

Ғылым және технология

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 KZread 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
    @barryanders3 ай бұрын

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

  • @jasonstetsonofficial
    @jasonstetsonofficial3 ай бұрын

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

  • @aamir3d
    @aamir3d3 ай бұрын

    Great little tutorial, thanks!

  • @Darkwing8707
    @Darkwing87073 ай бұрын

    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 ай бұрын

    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 ай бұрын

    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!

  • @omarbromar
    @omarbromar3 ай бұрын

    Good sir, you are a life saver.

  • @cp3266
    @cp32663 ай бұрын

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

  • @spirobel2.0
    @spirobel2.03 ай бұрын

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

  • @EvilNando
    @EvilNando3 ай бұрын

    hello is it possible to use this with a1111?

  • @stephantual
    @stephantual3 ай бұрын

    That was super solid, thank you @nerdyrodent! 🤠

  • @WhySoBroke
    @WhySoBroke3 ай бұрын

    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 😀

  • @Sandy5of5
    @Sandy5of53 ай бұрын

    Thanks Nerdy, I enjoyed it.

  • @pchungvt
    @pchungvt3 ай бұрын

    does this work for SD1.5?

  • @user-gq2bq3zf1f
    @user-gq2bq3zf1f3 ай бұрын

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

  • @DanielPartzsch
    @DanielPartzsch3 ай бұрын

    How do you get these sliders on the nodes?

  • @SLAMINGKICKS
    @SLAMINGKICKS3 ай бұрын

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

  • @wagmi614
    @wagmi6143 ай бұрын

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

  • @alexgilseg
    @alexgilseg3 ай бұрын

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

  • @NerdyRodent

    @NerdyRodent

    3 ай бұрын

    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? ✌️🙏🙏✌️💐

  • @dkamhaji
    @dkamhaji3 ай бұрын

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

  • @superhumandose
    @superhumandose3 ай бұрын

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

  • @user-uy4hf7cr6t
    @user-uy4hf7cr6t2 ай бұрын

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

  • @weirdscix
    @weirdscix3 ай бұрын

    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 ай бұрын

    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 ай бұрын

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

  • @jawad4548
    @jawad45483 ай бұрын

    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 ай бұрын

    same here

  • @NerdyRodent

    @NerdyRodent

    3 ай бұрын

    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 ай бұрын

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

  • @karansonkar2434
    @karansonkar24342 ай бұрын

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

  • @mlegarth
    @mlegarth3 ай бұрын

    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 ай бұрын

    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 😕

  • @gammingtoch259
    @gammingtoch25915 күн бұрын

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

  • @Grunacho
    @Grunacho3 ай бұрын

    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 ай бұрын

    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 ай бұрын

    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.

  • @user-kk2ve1un4u
    @user-kk2ve1un4u3 ай бұрын

    @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 ай бұрын

    InstantID is for non commercial use only due to insightface

  • @Lucas-uk6fj
    @Lucas-uk6fj3 ай бұрын

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

  • @Paulo-ut1li
    @Paulo-ut1li3 ай бұрын

    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 ай бұрын

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

  • @aipamagica1
    @aipamagica13 ай бұрын

    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'

  • @PulpoPaul28

    @PulpoPaul28

    3 ай бұрын

    same issue here

  • @GuiadeSaludFacil

    @GuiadeSaludFacil

    3 ай бұрын

    same

  • @lutaayam

    @lutaayam

    2 ай бұрын

    8:58

  • @user-rb2kb7xi4j
    @user-rb2kb7xi4j3 ай бұрын

    @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 ай бұрын

    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 ай бұрын

    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!

  • @gameswithoutfrontears416
    @gameswithoutfrontears4163 ай бұрын

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

  • @lutaayam
    @lutaayam2 ай бұрын

    With in seconds?

  • @ververa-wn4fx
    @ververa-wn4fx3 ай бұрын

    This looks like the evolution of LoRas

  • @Puckerization
    @Puckerization3 ай бұрын

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

  • @dcpuzzles2990

    @dcpuzzles2990

    3 ай бұрын

    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.akacic3 ай бұрын

    Painfully backwards node

  • @thinkinginmotion
    @thinkinginmotion3 ай бұрын

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

  • @aggroaperture

    @aggroaperture

    3 ай бұрын

    i have it too any solution?

  • @Paulo-ut1li
    @Paulo-ut1li3 ай бұрын

    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 🫤

  • @lucian6172
    @lucian61723 ай бұрын

    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 😞

  • @ESGamingCentral
    @ESGamingCentral3 ай бұрын

    In what front ends does this run?

  • @NerdyRodent

    @NerdyRodent

    3 ай бұрын

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

  • @AscendantStoic
    @AscendantStoic3 ай бұрын

    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 ай бұрын

    Just a shame InstandID isn’t for commercial use

  • @somtoachu5704
    @somtoachu57043 ай бұрын

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

  • @blacksage81

    @blacksage81

    3 ай бұрын

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

  • @bomar920

    @bomar920

    3 ай бұрын

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

  • @hatuey6326
    @hatuey63263 ай бұрын

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

  • @NerdyRodent

    @NerdyRodent

    3 ай бұрын

    I’ve uploaded an advanced workflow version on patreon

  • @lucianodaluz5414
    @lucianodaluz54143 ай бұрын

    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

  • @charlesselrachski34
    @charlesselrachski343 ай бұрын

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

  • @johnpope1473
    @johnpope14733 ай бұрын

    upvote for miniconda.

  • @Xewo7777
    @Xewo77773 ай бұрын

    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 ай бұрын

    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 ай бұрын

    For ComfyUI, see 7:57 onwards!

  • @Xewo7777

    @Xewo7777

    3 ай бұрын

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

  • @MayaAdkisson
    @MayaAdkisson2 ай бұрын

    I'm just here for the gaming vidz 🤪

  • @NerdyRodent

    @NerdyRodent

    2 ай бұрын

    😉

  • @godpunisher
    @godpunisherАй бұрын

    End screen was creepy 😥

  • @draken5379
    @draken53793 ай бұрын

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

  • @twilightfilms9436
    @twilightfilms94363 ай бұрын

    A1111?

  • @NerdyRodent

    @NerdyRodent

    3 ай бұрын

    Soon (tm) 😆

  • @mrhoangpro

    @mrhoangpro

    3 ай бұрын

    looking for a1111

  • @crashdummyglory
    @crashdummygloryАй бұрын

    awesome, is tis censored or uncensored?

  • @NerdyRodent

    @NerdyRodent

    Ай бұрын

    It’s completely uncensored

  • @deadlyrobot5179
    @deadlyrobot51793 ай бұрын

    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 ай бұрын

    Should be supported in A1111 soon…

  • 3 ай бұрын

    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

  • @richardc5100
    @richardc51003 ай бұрын

    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
    @prozacgod3 ай бұрын

    "Donald Musk" is the dad from Problem Child.

  • @srollors
    @srollors3 ай бұрын

    Actually results are worse than IP adapter

  • @procrastonationforever5521
    @procrastonationforever552126 күн бұрын

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

Келесі