PhotoMaker V2 in ComfyUI: Full Guide and Updated Workflow

Поделиться
HTML-код
  • Опубликовано: 30 янв 2025

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

  • @DarkGrayFantasy
    @DarkGrayFantasy 5 месяцев назад

    Simple, handy, to the point, Amazing guide for starting up the Photomaker v2
    Great job!

  • @vivekkarumudi
    @vivekkarumudi 5 месяцев назад

    Thank you so much , you earned a sub with your explaination. TOp notch stuff

  • @dadekennedy9712
    @dadekennedy9712 6 месяцев назад

    Thanks for the valulable information!

  • @boinel
    @boinel 14 дней назад

    Thanks! Can you please help me with one more thing? How to use multiple reference images?

    • @CodeCraftersCorner
      @CodeCraftersCorner  14 дней назад

      Hello! You can use multiple load image nodes for the reference images. Then use batch image node to connect them. It will be like this: image1 + image 2 connect to batch image.
      batch image connect to another batch image + image 3.
      new batch image connect to another batch image + image 4 and so on.
      Hope this makes sense.

  • @MrDanINSANE
    @MrDanINSANE 6 месяцев назад +3

    Thanks for the step-by-step tutorial it helps a lot 🙏
    After I did many tests via the online demo (huggingface) I found out that if you use MULTIPLE IMAGES of the same person with different lights, emotions, angles, the results will be MUCH more similar to the original.
    I'm very new to ComfyUI so I didn't figure out how to connect more than one node "Load Image" so the results are not as amazing as the online demo.
    I guess there is a way to load multiple source images of the same person to do the same on ComfyUI, please SHARE if it's a specific NODE. it will be nice to experiment.
    Thanks ahead! 🙏

    • @CodeCraftersCorner
      @CodeCraftersCorner  6 месяцев назад +2

      Thank for watching! Yes you can add multiple images in ComfyUI by using the following steps.
      1. Add a load image node and select the first image.
      2. Connect this load image node with a batch image node.
      3. Add a second image node and connect it to the batch image node.
      now you have two images from the batch image node.
      if you want to add more, then you connect the batch image node to another batch image node and keep chaining them.
      Hope this helps.

    • @MrDanINSANE
      @MrDanINSANE 6 месяцев назад

      @@CodeCraftersCorner Thank you for your kind reply, I will give that a try later on 🙏

    • @CodeCraftersCorner
      @CodeCraftersCorner  6 месяцев назад +1

      👍

    • @yonathanevan
      @yonathanevan 6 месяцев назад

      @@CodeCraftersCorner Where I could fine the exact model of juggernaut? thanks

    • @CodeCraftersCorner
      @CodeCraftersCorner  6 месяцев назад

      @yonathanevan these are the steps: search for Juggernaut XL on civitai website. The model id is 133005. Once the page loads, just below the name, there are different models you can choose from. Download the one that says: V9+RDPhoto2-Lightning_4S. I renamed mine to say ligntning_4_steps.

  • @matheusmelo5640
    @matheusmelo5640 27 дней назад

    Thanks for the video! Is it possible to use controlnet with PhotoMaker in ComfyUI?

    • @CodeCraftersCorner
      @CodeCraftersCorner  26 дней назад

      Thank you! It is possible to add the controlnet node the quality decreases

  • @SriLanka-i2g
    @SriLanka-i2g 3 месяца назад

    Brother thanks a lot for this video. May i know why i m unable to get generated image close as to reference image? tried different models with same parameters. result still the same.

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

      I suggest using a different method, maybe face id v2 for getting the face close to reference image. PhotoMaker seems to change the face somehow.

  • @juliusnanko6273
    @juliusnanko6273 6 месяцев назад

    Thank you! Very detailed as always.
    Does anybody know what the standalone version uses for a model/checkpoint? I had good results with the standalone, but can't reproduce it in ComfyUI.
    What checkpoint is best? I tried EpicrealismXL but was not pleased. Also the Anime/Comic checkpoints don't work very well...

    • @CodeCraftersCorner
      @CodeCraftersCorner  6 месяцев назад

      Hello, The standalone project uses this model: 'SG161222/RealVisXL_V4.0'. You can search for it on Huggingface models.

  • @LaguGabut
    @LaguGabut 6 месяцев назад

    I've install everything like in the video,
    but my "Photomaker Encode Plus" doesn't have input "INSIGHTFACE_OPT" .
    Please help.... thanks

    • @CodeCraftersCorner
      @CodeCraftersCorner  6 месяцев назад +1

      Hello, if the ""INSIGHTFACE_OPT" is not showing, it means you have an older version. Go into the ComfyUI Manager and click on Update All. Once the update completes, restart ComfyUI. Remove the old node and add a new one.

  • @Kikoking-y9b
    @Kikoking-y9b 6 месяцев назад

    Hi. I like your Videos. Do you have any Idea about the cheapest cloud GPU that is easy to use?

    • @CodeCraftersCorner
      @CodeCraftersCorner  6 месяцев назад +2

      Thank you! I don't have any specific recommendations since I generate everything locally. I prefer not to suggest options I haven't personally tried and can't guarantee.

    • @brightworld7550
      @brightworld7550 5 месяцев назад

      Try computegrid.ai it starts at 0.25$ an hour.

  • @UnchartedWorlds
    @UnchartedWorlds 5 месяцев назад

    Hi, any tips how to solve this: "0.1 seconds (IMPORT FAILED): E:\software\ComfyUI\ComfyUI\custom_nodes\ComfyUI-PhotoMaker-Plus"? this is in CLI after ComfyUI restarted.

    • @CodeCraftersCorner
      @CodeCraftersCorner  5 месяцев назад

      Hello, can you check your terminal and see if you have any "module not found" error. Usually, the import will fail if you are missing some dependencies. PhotoMaker will require installing insightface. If this is indeed the case, under the "Resources" section in the description of this video, there is a link "Watch for Insightface installation:". You can follow the instruction to get insightface and then try again.

    • @UnchartedWorlds
      @UnchartedWorlds 5 месяцев назад

      @@CodeCraftersCorner managed to sort it out but only thanks to Claude and some tips from it. I wish installing and getting it to work was less hour consuming :) I had to among other things install parallel phyton version (same version as comfyui embedded python) so that I could copy include folder (where all .h files are), withouth this I could not compile insightface on windows, it complained that python could not find files in include folder). Is there comfyui installation that where embedded python comes with include folder? I wonder what kind of comfyui installation you have, since it appears you did not run into such an issue otherwise you would have mentioned it in the video :)

    • @UnchartedWorlds
      @UnchartedWorlds 5 месяцев назад

      @@CodeCraftersCorner I figured it out, the tutorial will only work without issues and erros for properly installed ComfyUI with git clone, for portable, it won't work. User will run into issue with python not able to find all python sources etc, since embedded python that comes with protable is not complete python installation, so installing insightface and other stuff needed will lead to compile issues. Hope feedback helps

    • @CodeCraftersCorner
      @CodeCraftersCorner  5 месяцев назад +1

      @UnchartedWorlds ah, yes. When installing ComfyUI with git clone, there are no python_embeded folder. Thank you for the feedback. For next videos, I will try to keep it in mind.

  • @olternaut
    @olternaut 5 месяцев назад

    How will the sdxl PONY models work with this?

    • @CodeCraftersCorner
      @CodeCraftersCorner  5 месяцев назад +1

      Not sure! If it is based off SDXL, then it may work.

  • @UnchartedWorlds
    @UnchartedWorlds 5 месяцев назад

    Hi if we do not use the output of image crop node, why do we use it at all? Also for some reason I am getting issues when i press Queue Prompt:
    Error occurred when executing PhotoMakerEncodePlus:
    integer division or modulo by zero
    File "E:\ComfyUI\execution.py", line 316, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
    File "E:\ComfyUI\execution.py", line 191, in get_output_data
    and it goes on bit more...
    Seems this workflow will fail to work with some images?

    • @CodeCraftersCorner
      @CodeCraftersCorner  5 месяцев назад

      Yes, I also noticed that PhotoMaker V2 will throw errors when the input images are not "ideal".

  • @panonesia
    @panonesia 6 месяцев назад

    can you help? Error occurred when executing PhotoMakerEncodePlus:
    ZeroDivisionError: integer division or modulo by zero

    • @CodeCraftersCorner
      @CodeCraftersCorner  6 месяцев назад

      Can you check if you have everything connected properly. The text should contain man img or woman img. The trigger word is img.