Skip to content

Missing tracking_src_vid and animate_without_vid options in AdvancedLivePortrait node #102

@sheepbooy

Description

@sheepbooy

Bug Report

Description

The AdvancedLivePortrait node is missing the tracking_src_vid and animate_without_vid options in the UI, even though they are defined in the code.

Steps to Reproduce

  1. Add an AdvancedLivePortrait node to a workflow
  2. Check the node parameters
  3. Notice that tracking_src_vid and animate_without_vid options are not visible

Expected Behavior

The node should display all 7 parameter options:

  • retargeting_eyes
  • retargeting_mouth
  • crop_factor
  • turn_on
  • tracking_src_vid ← Missing
  • animate_without_vid ← Missing
  • command

Actual Behavior

Only 5 parameters are visible, missing the two boolean options.

Root Cause

The issue is caused by a parameter order mismatch between the INPUT_TYPES definition and the run method parameters in the AdvancedLivePortrait class.

Current (incorrect) order in run method:

def run(self, retargeting_eyes, retargeting_mouth, turn_on, tracking_src_vid, animate_without_vid, command, crop_factor, ...)

Should be (matching INPUT_TYPES):

def run(self, retargeting_eyes, retargeting_mouth, crop_factor, turn_on, tracking_src_vid, animate_without_vid, command, ...)

Additional Issues Found

  • Syntax error in NODE_CLASS_MAPPINGS: "PrintExpData:" should be "PrintExpData"

Solution

I have created a fix in my fork: https://github.com/sheepbooy/ComfyUI-AdvancedLivePortrait

Files modified:

  • nodes.py: Fixed parameter order and syntax error

Environment

  • ComfyUI version: v0.3.62

Workaround

Use my maintained fork until this is fixed in the main repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions