{
  "1": {
    "class_type": "LoadImage",
    "inputs": {
      "image": "portrait_src.png"
    }
  },
  "2": {
    "class_type": "DownloadAndLoadLivePortraitModels",
    "inputs": {}
  },
  "3": {
    "class_type": "LivePortraitLoadCropper",
    "inputs": {
      "onnx_device": "CUDA",
      "keep_model_loaded": true,
      "detection_threshold": 0.5
    }
  },
  "4": {
    "class_type": "VHS_LoadVideo",
    "inputs": {
      "video": "driving_d0.mp4",
      "force_rate": 0,
      "custom_width": 0,
      "custom_height": 0,
      "frame_load_cap": 80,
      "skip_first_frames": 0,
      "select_every_nth": 1,
      "format": "None"
    }
  },
  "5": {
    "class_type": "LivePortraitCropper",
    "inputs": {
      "pipeline": [
        "2",
        0
      ],
      "cropper": [
        "3",
        0
      ],
      "source_image": [
        "1",
        0
      ],
      "dsize": 512,
      "scale": 2.3,
      "vx_ratio": 0.0,
      "vy_ratio": -0.125,
      "face_index": 0,
      "face_index_order": "large-small",
      "rotate": true
    }
  },
  "6": {
    "class_type": "LivePortraitProcess",
    "inputs": {
      "pipeline": [
        "2",
        0
      ],
      "crop_info": [
        "5",
        1
      ],
      "source_image": [
        "5",
        0
      ],
      "driving_images": [
        "4",
        0
      ],
      "lip_zero": false,
      "lip_zero_threshold": 0.03,
      "stitching": true,
      "delta_multiplier": 1.0,
      "mismatch_method": "constant",
      "relative_motion_mode": "relative",
      "driving_smooth_observation_variance": 3e-06
    }
  },
  "8": {
    "class_type": "LivePortraitComposite",
    "inputs": {
      "source_image": [
        "1",
        0
      ],
      "cropped_image": [
        "6",
        0
      ],
      "liveportrait_out": [
        "6",
        1
      ]
    }
  },
  "7": {
    "class_type": "VHS_VideoCombine",
    "inputs": {
      "images": [
        "8",
        0
      ],
      "frame_rate": 24,
      "loop_count": 0,
      "filename_prefix": "liveportrait",
      "format": "image/gif",
      "pingpong": false,
      "save_output": true
    }
  }
}