feat(ditto): Positive-Only Mouth Breathing (v1.9.49) to fix Pursed Lips

This commit is contained in:
Hawk Lee
2026-01-22 23:14:13 +08:00
parent 9d44acce11
commit 403fcb4d26
2 changed files with 9 additions and 5 deletions
+8 -4
View File
@@ -767,10 +767,14 @@ class AIIA_DittoSampler:
d_pitch = math.cos(t * 1.5) * idle_amp * idle_weight
d_yaw = math.sin(t * 1.2) * idle_amp * idle_weight
# [Feature v1.9.48] Mouth Micro-Motion (Breathing)
# Add tiny sine wave to mouth to prevent "Rigid Frozen" look.
# Amplitude 0.005 is subtle enough to look like breathing/micro-tremor.
d_mouth = math.sin(t * 2.5) * 0.005 * idle_weight
# [Feature v1.9.49] Mouth Micro-Motion (Breathing)
# Refined: Positive-Only sine wave to prevent "Pursed Lips" (Negative Offset).
# Slower freq (2.0) and lower amp (0.004 peak) for subtlety.
# Formula: (sin + 1) * 0.5 ranges 0 to 1.
# Max opening = 0.005 * idle_weight.
d_mouth = (math.sin(t * 2.0) + 1.0) * 0.5 * 0.005 * idle_weight
# We need to ADD this to the global controls (hd_rot_p, etc.)
# We need to ADD this to the global controls (hd_rot_p, etc.)
# But ctrl_info overrides per frame.
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "aiia"
description = "The Ultimate AI Audio/Video toolkit for ComfyUI. Features an enhanced Ditto (with optimizations that outperform official demos and other SOTA talking head models in lip-sync accuracy and natural motion), EchoMimic V3 & FLOAT, VibeVoice & CosyVoice 3.0 (Zero-Shot Voice Cloning), Multi-Role Podcast Generation, and a powerful Media Browser."
version = "1.9.48"
version = "1.9.49"
license = {file = "LICENSE"}
readme = "README.md"
authors = [