The Official ComfyUI PhotoMaker for Stable Diffusion

Поділитися
Вставка
  • Опубліковано 4 вер 2024

КОМЕНТАРІ • 92

  • @uk3dcom
    @uk3dcom 7 місяців тому

    So pleased I came back to this tutorial thank you for your work here. I look forward to both the 1.5 version of Photomaker and the "official" ComfyUI version of InstantID. For those that read this the nodes are changing quickly so everything won't be exactly as stated.

  • @brgtubedev001
    @brgtubedev001 7 місяців тому +1

    Glad I found your channel. Excellent, comprehensive explanation. Thank you, and I'm looking forward to more of your tutorials.

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Thank you for the positive feedback, @brgtubedev001!

  • @KKsinsa
    @KKsinsa 7 місяців тому +1

    Thank you for the kind explanation today. Thanks to you, I installed it successfully, and it's working well. You are truly intelligent.

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Thank you very much, @KKsinsa! I truly appreciate your kind words.

  • @Douchebagus
    @Douchebagus 7 місяців тому

    Excellent video my friend. Leaving this comment to please the algorithim gods in your favor.

  • @aamir3d
    @aamir3d 7 місяців тому +2

    Nicely explained. Good work.

  • @0A01amir
    @0A01amir 7 місяців тому

    Like alaways you explain things from start, with detail and very clean, Thank you.
    I found IPAdapter miles ahead, specially the new FACEID V2 SDXL, it's heavy and sometimes it switch my comfyui to low v-ram mode (make it slow as hell and i have to restart my pc in order to get normal vram) but it give way more accurate results.

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому +1

      Thank you for the positive feedback, @0A01amir! I also prefer FACEID since I have more control over the final output.

    • @0A01amir
      @0A01amir 7 місяців тому

      @@CodeCraftersCorner So ture, even FaceID SD 1.5 and v2 are way way better than this, we can get more accurate results and have way more control over the face and expression. but either way it is good to see all these new advancements in just a short time and for free, i am really thankful for all of them and hope they create even better tools in the future.
      Thanks man

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому +1

      @0A01amir, yes, very true!

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

    Excellent tutorial ! Complete ! Thanks for the share . :O)

  • @michaelbayes802
    @michaelbayes802 7 місяців тому +1

    I think the node broke again. I logged an issue on the repo. It was working fine and then there was an update which caused the load node to break.

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Thank you for reporting, @michaelbayes802! I saw that the repo got updated again after your comment. Issue #17 was closed and resolved.

  • @SmallFox74
    @SmallFox74 7 місяців тому

    Brilliant descriptive video,thanks. Just one thing, i don't see a workflow example in the description?

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Thank you for pointing that out, @SmallFox74! I have updated the video description. Here is the link: bit.ly/3Umkq9d

  • @nicolaslozanovalencia
    @nicolaslozanovalencia 7 місяців тому

    You explain very well!! thank you very much for sharing

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Thanks for watching, @nicolaslozanovalencia! Appreciate the feedback.

  • @Gabriecielo
    @Gabriecielo 7 місяців тому +1

    Thanks for the video, I prefer this official implementation much more the ZHO-ZHO-ZHO one, since that one download other nodes and even checkpoints without asking. To be honest not so user friendly. BTW, there is a new model called InstantID just released, similar and seems stronger function, worth looking. AI researchers are just crazy, I remember one week ago it was FaceID v2 plus, now Photomaker, and InstantID might be the next, just in less than 10 days.

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Thank you @Gabriecielo! Yes, I, too prefer the official implementation. For instantID, i just released a video on the channel. So far, no official implementation but we got a good "early access" by ZHO-ZHO-ZHO.

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

    Great tutorial! I managed to make Photomaker work but for some reason I am getting images that doesn't match the original reference at all.

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

      @Digital_Toolbox, Thanks! Yes, it is quite hard to get the generated images to be like the original with PhotoMaker. I suggest experimenting and once you get something good, save the settings for later use. Different checkpoints will have different optimal settings.

  • @2PeteShakur
    @2PeteShakur 7 місяців тому

    excellent work amigo, keep up the great work and keep going! subbed! :)

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Thanks for the sub, @2PeteShakur! Glad you liked it.

  • @RonnieMirands
    @RonnieMirands 7 місяців тому

    why your comfyui, has a beautiful interface and more options? is there anything i am missing? really great!

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому +1

      Hello @RonnieMirands, yes, I have some custom nodes installed and I changed my ComfyUI settings. I may make a video on the topic in the future.

  • @johnlenoob6951
    @johnlenoob6951 7 місяців тому +1

    Many thanks, excellent video

  • @RonnieMirands
    @RonnieMirands 7 місяців тому

    weird, you said is not compatible with SD1.5 models, but when i load any SD1.5 model it works as well!

    • @RonnieMirands
      @RonnieMirands 7 місяців тому

      but loading the basic workflow it doesnt work at all, the image output has nothing to do with the input, its like broken

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Hello @RonnieMirands, the project got a lots of updates lately as mentioned by @uk3dcom. It is possible that now it can take SD1.5 models and workflows no longer work. The developer mentioned to "Due to various node updates and changes, you may have to recreate the node." in their guide. Best to experiment and see what works for you.

  • @VitaliyChaback
    @VitaliyChaback 7 місяців тому

    Thank you for your work. I tried both Photomakers from (1) Zho-zho-zho and (2) Shiimizu. The first one was very slow, but produced great results even from a single photo. The second one never produced a decent result. I don't know what the problem could be.

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому +1

      Thank you, @VitaliyChaback! The Zho-Zho-Zho version is complete and can be used on its own. The Shiimizu version will require additional helper nodes to get decent results. You can try to combine it with ControlNet and using a second KSampler node to add details. You can try to look into the workflows I provided here: bit.ly/3Umkq9d. The post is from 6 days ago. Since the project is getting updates frequently, some node may have different names. Good Luck!

  • @hudaicihandurmus5414
    @hudaicihandurmus5414 7 місяців тому +1

    Hello, thanks for the explanations. Is it possible to use control net elements with this photomaker. For example, when we make an oil painting effect, is it possible to apply only the effect to the picture and keep the picture faithful to the original?

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому +2

      Hello @hudaicihandurmus5414! Yes you can use ControlNets. You have to download the SDXL Control Lora models and use these as the ControlNet v1.1 for SD1.5 will not work. I have updated the Patreon post (free) with an image and workflow file. The link is in the description. Thank you for watching.

  • @johnriperti3127
    @johnriperti3127 7 місяців тому

    Really good video, thanks !

  • @JackTorcello
    @JackTorcello 7 місяців тому +1

    In my Photomaker Node, there are only 2 menu items - the LoadPhotoMaker option is not available. Reinstalled twice (the SMZ version). Photomaker Encode and Apply Photomaker Style are OK, as is Prepare Images For ClipVision From Path.

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому +1

      Hello @JackTorcello, I just tested and installed the latest version successfully. All the nodes are showing. I see you have logged an issue in the Github repo. Hope the developers can assist you with that.

    • @JackTorcello
      @JackTorcello 7 місяців тому

      @@CodeCraftersCorner Thank you. You are an amazingly thoroughgoing and patient teacher. I can see that I will learn a lot from you!

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      @JackTorcello Thank you so much! Glad to have you as part of the community.

    • @adelrosso
      @adelrosso 6 місяців тому

      Same problem for me. Under Add Node: _for_testing:photomaker:PhotomakerLoader can be found! @@CodeCraftersCorner

    • @CodeCraftersCorner
      @CodeCraftersCorner  6 місяців тому

      @adelrosso, I'll create a new video with updated steps. The project changed since the video.

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

    Tutorial is incomplete. Does not show complete workflow. No test runs.

  • @krupnikova
    @krupnikova 7 місяців тому

    Thanks a lot for the video, very detailed! Did I understand correctly that you need to create your own folder for each person? maybe it would be better to create a temporary folder, and then delete it after completion.

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Thank you for the feedback, @krupnikova! Yes, when loading images from a folder, you may have to create multiple folders for each person. If you do not need the input images after the image generation, using a temporary folder is a good idea for organization and cleanup.

  • @mehradbayat9665
    @mehradbayat9665 7 місяців тому

    Love it. Liked. Only 1 question this time :-) - What's the point of going from one ksampler into another ksampler?

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Thank you for the support, @mehradbayat9665! There are many reasons to use multiple ksamplers. One example is, you can start generating an image and stop the generation short, (around 4-6 steps). The idea is to generate an image with a correct pose and frame. Then send the output to another ksampler with possible a different model or prompts to get the style. You can also do noise injection with this technique.

    • @mehradbayat9665
      @mehradbayat9665 7 місяців тому

      Interesting, and what does noise injection do? And would you ever consider creating a video to go more in depth?@@CodeCraftersCorner

    • @mehradbayat9665
      @mehradbayat9665 7 місяців тому

      And why wouldn't you just do the pose and style in the first run? Do you get more consistency with two ksamplers?@@CodeCraftersCorner

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      @mehradbayat9665, It is just an option giving more flexibility. Two ksamplers does not guarantee a better result but does give more control.

  • @NotThatOlivia
    @NotThatOlivia 7 місяців тому

    you should add the "hook" to your videos, basically frontloading the best what to expect from the video, instead I have to search for it ....

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Thank you for the suggestion, @OliviaFromTrivia! I'm relatively new to creating UA-cam educational content, and I truly appreciate your input. I will certainly incorporate that to improve the viewing experience.

  • @deviantstudio
    @deviantstudio 6 місяців тому

    i tried it on my own photos, with several different models. the result is absolutely doesn't look like me :)
    I guess it works only on celebrities because their data is already in the models.

    • @CodeCraftersCorner
      @CodeCraftersCorner  6 місяців тому

      Hello @deviantstudio! Yes, if the model is already trained on the subject, then it will give better results. You can try using multiple images as input which can enhance the resemblance.

  • @musicandhappinessbyjo795
    @musicandhappinessbyjo795 7 місяців тому

    They have changed the name of the nodes to photomaker plus so it doesn't create issue with the zho zho version

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Thanks for the info, @musicandhappinessbyjo795! Appreciate it!

  • @AICreator1314
    @AICreator1314 6 місяців тому

    It was not work whatever follow your step or download your workflow. Can you show how it's work in the video?

    • @CodeCraftersCorner
      @CodeCraftersCorner  6 місяців тому +1

      Sure, @AICreator1314! I'll create a new video with updated steps. Stay tuned!

  • @maykehafemann9531
    @maykehafemann9531 6 місяців тому

    How to use LORA in this workflow?

    • @CodeCraftersCorner
      @CodeCraftersCorner  6 місяців тому

      Hello, @maykehafemann9531, I am recording a new video for a follow on PhotoMaker.

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

    Very useful video! I am a little confused about what to do with the ZZZ version...uninstall? If so, how? I see when you are loading nodes, the ZZZ Photomaker version is no longer there, correct?

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому +1

      Thank you, @WhySoBroke! If you have successfully installed the official version by Shiimizu and it is running well, yes, you can uninstall the ZZZ version by deleting the folder from your custom nodes folder. Then assuming you are on Windows, go into your home directory. It should be something like C:\Users\your_username. In here, there is a folder named .cache. Go in and delete the model. This will help save some disk space.

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

      Thank you @@CodeCraftersCorner I am having another issue. When I load your workflow, the following Node is not found: PhotomakerEncode. Only PhotomakerEncodePlus is present but that one is missing the clipvision input. Any idea how to fix that?

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      @WhySoBroke, The developer updated the node. Try the following:
      1. go into the PhotoMaker folder inside the custom node folder.
      2. open CMD here (type CMD in address bar and press enter)
      3. type in: git pull.
      4. (optional) if you get a "error: Your local changes to the following files would be overwritten by merge:", type in: git restore . ( the dot is important)
      5. Then do: git pull
      6. Now start ComfyUI
      7. Replace the old nodes with the new nodes and connect them.
      8. The PhotoMaker Encode Plus will take the clip from the model, the photomaker output from the Load PhotoMaker node, an image as input, the positive prompt.
      9. The node will output a CONDITIONING which you can connect to the positive prompt.
      10. You will not require a clipvision input for this one.

    • @2PeteShakur
      @2PeteShakur 7 місяців тому

      @@CodeCraftersCorner nice one mate, worked a treat! ;)

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      👍

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

    Thanks. The project has not been updated since January 2024.. I guess it must have been deprecated.

  • @MrJohnerlandsson83
    @MrJohnerlandsson83 7 місяців тому

    How do I set sysmem fallback policy in linux?

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Hi @MrJohnerlandsson83. I do not have a Linux system to test. I am guessing you will have to install it from the command line. I saw an article suggesting sudo apt install nvidia-settings for Ubuntu 20.04. Be sure to double check the command and research it before running on your build. You may have a different app manager.

  • @goliat2606
    @goliat2606 7 місяців тому

    When i queue prompt i got very very long error starts like:
    Error occurred when executing PhotoMakerLoader:
    Error(s) in loading state_dict for PhotoMakerIDEncoder:

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Hi @goliat2606! Can you try with a different model / checkpoint? In PyTorch, the state_dict is an object which holds the model parameter.

    • @goliat2606
      @goliat2606 7 місяців тому

      @@CodeCraftersCorner I tried v1-5-pruned-emaonly, realisticVisionV60B1_v60B1VAE and dreamshaper_8. Always the same :/.

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      @goliat2606, You will have to download a new SDXL model. The ones you tried are all SD1.5 models. PhotoMaker will only work with SDXL models. Go to civitai website and use the filter to search for an SDXL model and try again.

    • @goliat2606
      @goliat2606 7 місяців тому

      @@CodeCraftersCorner I tried on juggernautXL_v8Rundiffusion and realismEngineSDXL_v30VAE and the same ;/.

    • @goliat2606
      @goliat2606 7 місяців тому

      ​@@CodeCraftersCorner now i tester on fresh portable ComfyUI and it works:). What can be wrong on my old installation:/? Any way to update packages or something?

  • @claytonking3709
    @claytonking3709 7 місяців тому

    could you upload your pathflow, so that I can just download it and use it, rather than following this video. I cant seem to figure it out. Thanks

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Sure, here is the workflow with some more examples: bit.ly/3HCXFX6

  • @drmuradkhan
    @drmuradkhan 7 місяців тому

    Thank you for the video and i wish you all the best. do you have any discord server ?

    • @CodeCraftersCorner
      @CodeCraftersCorner  7 місяців тому

      Thank you @drmuradkhan, and well wishes! I currently have a private discord server for my Patreon supporters. I do not have the capacity to make it public just yet.