ComfyUI - Live Portrait | Animate Character Face (Video to Video)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ส.ค. 2024
  • In this video, we first show how you can easily animate a portrait photo realistically using a simple video.
    Note: To watch the tutorial on animate a face in a video using another video, please go to second 03:44 of the video.
    Note: Make sure to install Live Portrait from the publisher shadowcz007!
    00:20 - Live Portrait (Video to Image)
    03:44 - Live Portrait (Video to Video)
    ***********************************
    Comfyui tutorial, Учебное пособие по Comfyui, Comfyui ट्यूटोरियल, Tutoriel Comfyui, Tutorial Comfyui, Comfyui 튜토리얼
    Comfyui stable diffusion, Install comfyui, comfyui video, controlnet comfyui, comfyui animateddiff, comfyui sdxl, comfyui upscale, comfyui video to video, comfyui manager, comfyui inpainting, comfyui ipadapter, comfyui faceswap
    ***********************************
    🤯 Get my FREE ComfyUI workflows: openart.ai/wor...
    ------------------------------------
    🌍 SOCIAL
    / cgtoptips
    / cgtoptips
    📧 cg.top.tips@gmail.com
    ------------------------------------
    #ComfyUI
    #LivePortrait

ความคิดเห็น • 54

  • @gregosfr
    @gregosfr หลายเดือนก่อน +1

    great video and workflows, please don't forget youtube subtitles

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน +1

      Sure, soon the videis will have voiceovers to make them easier to understand :)

  • @WiLDeveD
    @WiLDeveD หลายเดือนก่อน +2

    Very useful Tutorial. thanks.

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน +1

      I am glad it was usefull

  • @thehanspoon
    @thehanspoon หลายเดือนก่อน +2

    Thank you

  • @davimak4671
    @davimak4671 หลายเดือนก่อน +2

    thanks, bro

  • @ingeniosoleonalmeida5877
    @ingeniosoleonalmeida5877 หลายเดือนก่อน

    very nice tutoriales Real Time Camera to AI in ComfyUI

  • @DeMaddin81
    @DeMaddin81 หลายเดือนก่อน +1

    Hi. I had a look at the temporary files. I noticed something: With your method, it seems that for EVERY frame of the source video, a complete pass with the facial expressions of the target video is made. This means that at 30 fps and 1 second (for the result), for example, 30x30 = 900 images are generated per second (at 30 fps of the source video). However, only 30 images are needed for the result, the other 870 images are discarded. I understand that comparison images are needed for consistent movement. But wouldn't 5 comparison images be enough, for example, instead of the full second? If I render 10 seconds of video, for example (at 30 fps), the result for 300 video images is 10*30*30=9000 generated images. That's crazy and needs a lot of time. Do you have a solution for this.

  • @daja74
    @daja74 หลายเดือนก่อน

    Great work. One difference I see in my ComfyUI setup is that each frame requires the whole Live Portrait step to complete. So for a 50-frame video, the workflow will run the Live Portrait step 50 times. Is that correct? Because in the You Tube Video, it looks like only one step of the Live Portrait completes the whole video render. I want to make sure I have not messed up somehow. I did need to install your version of Live Portrait and MixLab directly from your Git repos rather than through the ComfyUI manager.

  • @DarienLingstuyl
    @DarienLingstuyl 15 วันที่ผ่านมา

    I am trying the LivePortrait Video on ComfyUI on pinokio, there is one thing I don't know how to fix, if the original video has other expressions like smiling, and in the driving video smile too, I get a really weird "joker" smile, like doubling the expressions between the original and the driving video, is there a way to fix that?

    • @CgTopTips
      @CgTopTips  15 วันที่ผ่านมา

      You need to pay attention to two things:
      1. The facial expression in the first frame of both videos should be the same. For example, if the mouth is closed in one video, it should also be closed in the second video, and so on.
      2. Live Portrait works better with source videos where the face doesn't change much.

    • @DarienLingstuyl
      @DarienLingstuyl 15 วันที่ผ่านมา

      @@CgTopTips Thanks!, i knew that the first frame was important and I read that it has to be an standard expression, but the video target started smiling, so I started the driving video smiling and it got better, only that when target smiles, I still get a little overreacting of smile. But thanks for your suggestion!

  • @selenegarcia6321
    @selenegarcia6321 7 วันที่ผ่านมา

    Error occurred when executing LivePortraitProcess:
    LivePortraitProcess.process() missing 1 required positional argument: 'crop_info'
    Can anybody help please???

  • @timemirror_
    @timemirror_ หลายเดือนก่อน

    Thanks!! I have an issue btw. The "insightface" folder didn't appear in my "models" folder. I am sure I downloaded the nods you mentioned at the beginning of the video. Maybe I'm doing something wrong. What do you think?

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน

      Manually create that folder and put the model

  • @user-jh8zy7oy5b
    @user-jh8zy7oy5b หลายเดือนก่อน

    tell me what the problem is, it takes a very long time to render for more than an hour and then such a result and there are no errors. the video that turned out to have a black square instead of a head.

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน

      Prolonged render time could be due to one of the following options:
      1. You are using the CPU instead of the GPU.
      2. The program is downloading its required files for the first time (though the render should not be lengthy on the second run).
      3. Your settings, such as video duration, size, or the number of steps, are high!

  • @DeMaddin81
    @DeMaddin81 หลายเดือนก่อน

    Hi. Great video. Where do I get the source video? I mean the dancing woman.

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน +1

      www.pexels.com/search/videos/dancing/

    • @DeMaddin81
      @DeMaddin81 หลายเดือนก่อน

      @@CgTopTips Thank you! 😀👍

  • @user-pn6ey5dn4y
    @user-pn6ey5dn4y หลายเดือนก่อน

    Do you know of a way to crop/resize the video to a square shape that will work in 'this' workflow without distorting the original image?
    Usually, I'd use image resize or prepare images for clip vision, but they don't work here because of the connectors.

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน

      Use ImageCrop node

    • @user-pn6ey5dn4y
      @user-pn6ey5dn4y หลายเดือนก่อน

      @CgTopTips thanks for a suggestion. Could you send a picture please? I tried to connect "load video and segment" to two different image crop nodes, but they don't connect.
      I could crop a video if I use a different load video node, but then I can't connect into the 'drive video' connector in the live portrait node.
      Thank you

  • @SupermanRLSF
    @SupermanRLSF 9 วันที่ผ่านมา

    Is there a way to get a webcam live feed into the first video section?

    • @CgTopTips
      @CgTopTips  9 วันที่ผ่านมา

      Yes, for instructions, you can find the tutorial videos on TH-cam, Webcam Portrait Live

  • @DeMaddin81
    @DeMaddin81 หลายเดือนก่อน

    I noticed something: When I tried with another dancer, her face was covered by her hand for a few frames. I immediately got an error message (like) "Face not recognized". The process aborted and the entire result was discarded. That means the entire rendering time was wasted. Do you have any idea how to make the tool continue rendering despite the error message? Perhaps an additional box in the ComfyUI that catches the error?

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน +1

      Unfortunately, in this method, the face must be visible in all frames, and there is currently no solution for this issue !

    • @DeMaddin81
      @DeMaddin81 หลายเดือนก่อน

      @@CgTopTips THX!

  • @user-tn3nc1mz3q
    @user-tn3nc1mz3q 28 วันที่ผ่านมา

    I get an error: (IMPORT FAILED) comfyui-liveportrait so the liveportraitforvideo node can't work. It did't success to fix it automaticly. What can I do?

    • @CGITanous
      @CGITanous 12 วันที่ผ่านมา

      I have the same issue, were you able to fix it?

    • @user-tn3nc1mz3q
      @user-tn3nc1mz3q 11 วันที่ผ่านมา +1

      @@CGITanous Then I found another workflow that worked for me without using this node. But I can't remember where it was... the file is called liveportrait_video_example_02.json

  • @LeePreston-t1d
    @LeePreston-t1d 29 วันที่ผ่านมา

    Anyone know if this can work on mac M3, I am recieving this error code currently if anyone knows how to help. "Error occurred when executing LivePortraitVideoNode:
    Torch not compiled with CUDA enabled
    File "/Users/leepreston/Desktop/AI/ComfyUI/execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/leepreston/Desktop/AI/ComfyUI/execution.py", line 81, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/leepreston/Desktop/AI/ComfyUI/execution.py", line 65, in map_node_over_list
    results.append(getattr(obj, func)(**input_data_all))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/leepreston/Desktop/AI/ComfyUI/custom_nodes/comfyui-liveportrait/nodes/live_portrait.py", line 468, in run
    live_portrait_pipeline = LivePortraitPipeline(
    ^^^^^^^^^^^^^^^^^^^^^
    File "/Users/leepreston/Desktop/AI/ComfyUI/custom_nodes/comfyui-liveportrait/nodes/LivePortrait/src/live_portrait_pipeline.py", line 67, in __init__
    self.live_portrait_wrapper: LivePortraitWrapper = LivePortraitWrapper(cfg=inference_cfg)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/leepreston/Desktop/AI/ComfyUI/custom_nodes/comfyui-liveportrait/nodes/LivePortrait/src/live_portrait_wrapper.py", line 29, in __init__
    self.appearance_feature_extractor = load_model(cfg.checkpoint_F, model_config, cfg.device_id, 'appearance_feature_extractor')
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/leepreston/Desktop/AI/ComfyUI/custom_nodes/comfyui-liveportrait/nodes/LivePortrait/src/utils/helper.py", line 99, in load_model
    model = AppearanceFeatureExtractor(**model_params).cuda(device)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/homebrew/lib/python3.11/site-packages/torch/nn/modules/module.py", line 915, in cuda
    return self._apply(lambda t: t.cuda(device))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/homebrew/lib/python3.11/site-packages/torch/nn/modules/module.py", line 779, in _apply
    module._apply(fn)
    File "/opt/homebrew/lib/python3.11/site-packages/torch/nn/modules/module.py", line 779, in _apply
    module._apply(fn)
    File "/opt/homebrew/lib/python3.11/site-packages/torch/nn/modules/module.py", line 804, in _apply
    param_applied = fn(param)
    ^^^^^^^^^
    File "/opt/homebrew/lib/python3.11/site-packages/torch/nn/modules/module.py", line 915, in
    return self._apply(lambda t: t.cuda(device))
    ^^^^^^^^^^^^^^
    File "/opt/homebrew/lib/python3.11/site-packages/torch/cuda/__init__.py", line 284, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")

  • @user-ng3bi6xn2u
    @user-ng3bi6xn2u หลายเดือนก่อน

    I am getting the "No face detected in the source image" error while trying the Video-to-Video method.

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน

      @@user-ng3bi6xn2u The face must be clearly visible, meaning the video quality should not be too low, or the character's head should be facing the camera

  • @fatiheke
    @fatiheke หลายเดือนก่อน

    error not install
    "LivePortraitVideoNode"

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน

      Always check the following points:
      - Ensure you install the requirement files for each custom node (pip install -r requirements.txt).
      - Download the necessary models for each custom node.
      - Verify that all custom nodes needed for the workflow are installed without issues (check through the manager panel).
      - Ensure there are no version conflicts between models; for example, if the checkpoint is SD1.5, the ControlNet should also be SD1.5.
      - Always follow the installation steps for each custom node precisely through its GitHub page.
      - The best way to understand an issue when you see an error message is the ComfyUI Terminal Panel. For example, sizes might not match, or you might not have selected the settings for a node correctly, and so on.
      - You can copy the error message and search for a solution on Google.
      Note: If the problem is still unresolved, please share a screen shot of error with your workflow via email so I can check it.

  • @inteligenciafutura
    @inteligenciafutura หลายเดือนก่อน

    I have never used the tool, can it be installed with pinochio?

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน +1

      You can install A1111 with Pinochio. ComfyUI is portable, and Live Portrait is a custom node and should install through comfyui

    • @inteligenciafutura
      @inteligenciafutura หลายเดือนก่อน

      @@CgTopTips (IMPORT FAILED) comfyui-liveportrait :(

  • @user-go5vl9rv4p
    @user-go5vl9rv4p หลายเดือนก่อน

    Set notebook specs?

  • @Alehantro
    @Alehantro หลายเดือนก่อน

    probably a stupid question, but i just downloaded comfy ui and i can't see the mixlab, the manager and the share tab. Any ideas on that?

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน +1

      The easiest way is to download the Manager (github.com/ltdrdata/ComfyUI-Manager/archive/refs/heads/main.zip) and extract it into the custom node folder. Search for and install Mixlab through the Manager panel, or download it and extract it into the custom node folder.

    • @Alehantro
      @Alehantro หลายเดือนก่อน

      @@CgTopTips Thank you so much for that!

    • @Alehantro
      @Alehantro หลายเดือนก่อน

      @@CgTopTips I'm trying to add the liveportrait models, and but i can't see the folder "insightface" that you show

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน

      @@Alehantro You can manually create that

    • @Alehantro
      @Alehantro หลายเดือนก่อน

      @@CgTopTips Once again, thank you so much for both your answers and your tutorial! It worked!!!

  • @kneel.downnn
    @kneel.downnn หลายเดือนก่อน

    Whats your pc specs btw

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน

      RTX 4060, 8GB VRAM

  • @kiya573
    @kiya573 หลายเดือนก่อน

    Can I use in colab

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน

      Sorry, I have no information

  • @mylittleheartscar
    @mylittleheartscar หลายเดือนก่อน

    What's the song tho?

    • @CgTopTips
      @CgTopTips  หลายเดือนก่อน

      Which song ? I used 3 songs in the video :)