# dongxiansuixin/mixamo-llm-mocap architecture

> Architecture diagram of the GitHub repository dongxiansuixin/mixamo-llm-mocap, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dongxiansuixin/mixamo-llm-mocap
- Repository: https://github.com/dongxiansuixin/mixamo-llm-mocap

## Overview

Mixamo LLM Mocap converts locked-camera footage into FK animation for Mixamo characters. Its primary workflow estimates SMPL-X pose, optionally refines it with video keypoints, retargets rotations to a measured rig, applies motion in Blender, then renders and evaluates the result. A documented legacy landmark/spec workflow remains for existing motions and two-character tooling; setup, detection, comparison, collision, and review capabilities are retained. Most cross-stage relationships below follow the README pipeline; unsampled modules are represented only at the documented capability level.

Main entry points: [`pipeline/retarget_smplx.py`](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/retarget_smplx.py) (Rotation retarget), [`pipeline/setup_rig.py`](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/setup_rig.py) (Rig setup), [`pipeline/estimate_pose_gvhmr.py`](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/estimate_pose_gvhmr.py) (GVHMR estimate), [`pipeline/apply_mixamo_fk.py`](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/apply_mixamo_fk.py) (FK apply)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_rigging["Rig and scenes"]
  node_setup_rig["Rig setup<br/>[setup_rig.py]"]
  node_setup_duo["Duo setup<br/>[setup_duo.py]"]
end

subgraph group_pose["Pose estimation"]
  node_gvhmr["GVHMR estimate"]
  node_feet["Foot detection<br/>[detect_feet.py]"]
  node_hands["Hand detection<br/>[detect_hands.py]"]
  node_refine["SMPL-X refinement<br/>[refine_smplx.py]"]
end

subgraph group_motion["Retarget and apply"]
  node_body_math["SMPL-X body math<br/>[smplx_body.py]"]
  node_retarget_smplx["Rotation retarget<br/>[retarget_smplx.py]"]
  node_bl_motion["Headless motion apply<br/>[bl_motion.py]"]
  node_legacy_analysis["Landmark analysis"]
  node_action_specs["Action specifications"]
  node_lift["Landmark retarget<br/>[lift_to_mixamo.py]"]
  node_apply_fk["FK apply<br/>[apply_mixamo_fk.py]"]
  node_blender_exec["Live Blender bridge<br/>[blender_exec.py]"]
end

subgraph group_validation["Review and QA"]
  node_qa["Clip QA<br/>[qa_clip.py]"]
  node_fidelity["Fidelity evaluation<br/>[eval_fidelity.py]"]
  node_compare_ref["Reference comparison"]
  node_render_review["Review rendering<br/>[render_review.py]"]
  node_render_preview["Preview rendering<br/>[render_preview.py]"]
end

subgraph group_duo["Two performers"]
  node_compare_pair["Pair comparison<br/>[compare_pair.py]"]
  node_collision["Mesh collision<br/>[run_in_blender.py]"]
end

node_video(("Source video"))
node_mixamo(("Mixamo character"))

node_mixamo -->|"provides rig"| node_setup_rig
node_setup_rig -->|"measures profile"| node_retarget_smplx
node_setup_rig -->|"measures profile"| node_apply_fk
node_video -->|"estimates pose"| node_gvhmr
node_gvhmr -->|"refines parameters"| node_refine
node_video -->|"fits keypoints"| node_refine
node_video -->|"detects feet"| node_feet
node_video -->|"detects hands"| node_hands
node_feet -->|"supplies keypoints"| node_refine
node_refine -->|"supplies SMPL-X"| node_retarget_smplx
node_gvhmr -->|"supplies rotations"| node_retarget_smplx
node_hands -->|"supplies finger data"| node_retarget_smplx
node_body_math -->|"supports transforms"| node_retarget_smplx
node_retarget_smplx -->|"writes motion"| node_bl_motion
node_bl_motion -->|"renders review"| node_render_review
node_bl_motion -->|"evaluates output"| node_fidelity
node_gvhmr -->|"exports landmarks"| node_legacy_analysis
node_legacy_analysis -->|"guides beat sheet"| node_action_specs
node_action_specs -->|"configures retarget"| node_lift
node_lift -->|"supplies lifted joints"| node_apply_fk
node_apply_fk -->|"runs in Blender"| node_blender_exec
node_apply_fk -->|"gates motion"| node_qa
node_qa -->|"checks against source"| node_compare_ref
node_compare_ref -->|"guides review"| node_render_preview
node_setup_rig -->|"reuses rig setup"| node_setup_duo
node_video -->|"checks performer spacing"| node_compare_pair
node_setup_duo -->|"provides duo scene"| node_compare_pair
node_setup_duo -->|"provides characters"| node_collision
node_action_specs -->|"configures comparison"| node_compare_pair

click node_setup_rig "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/setup_rig.py"
click node_setup_duo "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/setup_duo.py"
click node_gvhmr "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/estimate_pose_gvhmr.py"
click node_feet "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/detect_feet.py"
click node_hands "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/detect_hands.py"
click node_refine "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/refine_smplx.py"
click node_body_math "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/smplx_body.py"
click node_retarget_smplx "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/retarget_smplx.py"
click node_bl_motion "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/bl_motion.py"
click node_legacy_analysis "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/analyze_landmarks.py"
click node_action_specs "https://github.com/dongxiansuixin/mixamo-llm-mocap/tree/main/action_specs"
click node_lift "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/lift_to_mixamo.py"
click node_apply_fk "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/apply_mixamo_fk.py"
click node_blender_exec "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/blender_exec.py"
click node_qa "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/qa_clip.py"
click node_fidelity "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/eval_fidelity.py"
click node_compare_ref "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/compare_reference.py"
click node_render_review "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/render_review.py"
click node_render_preview "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/render_preview.py"
click node_compare_pair "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/compare_pair.py"
click node_collision "https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/run_in_blender.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_setup_rig,node_setup_duo toneBlue
class node_gvhmr,node_feet,node_hands,node_refine toneAmber
class node_body_math,node_retarget_smplx,node_bl_motion,node_legacy_analysis,node_action_specs,node_lift,node_apply_fk,node_blender_exec toneMint
class node_qa,node_fidelity,node_compare_ref,node_render_review,node_render_preview toneRose
class node_compare_pair,node_collision,node_video,node_mixamo toneIndigo
```

## Components

### Rig and scenes

- [Rig setup](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/setup_rig.py): `pipeline/setup_rig.py`
- [Duo setup](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/setup_duo.py): `pipeline/setup_duo.py`

### Pose estimation

- [GVHMR estimate](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/estimate_pose_gvhmr.py): `pipeline/estimate_pose_gvhmr.py`
- [Foot detection](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/detect_feet.py): `pipeline/detect_feet.py`
- [Hand detection](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/detect_hands.py): `pipeline/detect_hands.py`
- [SMPL-X refinement](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/refine_smplx.py): `pipeline/refine_smplx.py`

### Retarget and apply

- [SMPL-X body math](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/smplx_body.py): `pipeline/smplx_body.py`
- [Rotation retarget](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/retarget_smplx.py): `pipeline/retarget_smplx.py`
- [Headless motion apply](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/bl_motion.py): `pipeline/bl_motion.py`
- [Landmark analysis](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/analyze_landmarks.py): `pipeline/analyze_landmarks.py`
- [Action specifications](https://github.com/dongxiansuixin/mixamo-llm-mocap/tree/main/action_specs): `action_specs`
- [Landmark retarget](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/lift_to_mixamo.py): `pipeline/lift_to_mixamo.py`
- [FK apply](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/apply_mixamo_fk.py): `pipeline/apply_mixamo_fk.py`
- [Live Blender bridge](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/blender_exec.py): `pipeline/blender_exec.py`

### Review and QA

- [Clip QA](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/qa_clip.py): `pipeline/qa_clip.py`
- [Fidelity evaluation](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/eval_fidelity.py): `pipeline/eval_fidelity.py`
- [Reference comparison](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/compare_reference.py): `pipeline/compare_reference.py`
- [Review rendering](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/render_review.py): `pipeline/render_review.py`
- [Preview rendering](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/render_preview.py): `pipeline/render_preview.py`

### Two performers

- [Pair comparison](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/compare_pair.py): `pipeline/compare_pair.py`
- [Mesh collision](https://github.com/dongxiansuixin/mixamo-llm-mocap/blob/main/pipeline/run_in_blender.py): `pipeline/run_in_blender.py`

### Other components

- **Source video**
- **Mixamo character**

## Connections

- Mixamo character → Rig setup: provides rig (evidence: `README.md`)
- Rig setup → Rotation retarget: measures profile (evidence: `README.md`)
- Rig setup → FK apply: measures profile (evidence: `README.md`)
- Source video → GVHMR estimate: estimates pose (evidence: `README.md`)
- GVHMR estimate → SMPL-X refinement: refines parameters (evidence: `README.md`)
- Source video → SMPL-X refinement: fits keypoints (evidence: `pipeline/refine_smplx.py`)
- Source video → Foot detection: detects feet (evidence: `pipeline/detect_feet.py`)
- Source video → Hand detection: detects hands (evidence: `pipeline/detect_hands.py`)
- Foot detection → SMPL-X refinement: supplies keypoints (evidence: `pipeline/refine_smplx.py`)
- SMPL-X refinement → Rotation retarget: supplies SMPL-X (evidence: `README.md`)
- GVHMR estimate → Rotation retarget: supplies rotations (evidence: `README.md`)
- Hand detection → Rotation retarget: supplies finger data (evidence: `README.md`)
- SMPL-X body math → Rotation retarget: supports transforms (evidence: `pipeline/retarget_smplx.py`)
- Rotation retarget → Headless motion apply: writes motion (evidence: `README.md`)
- Headless motion apply → Review rendering: renders review (evidence: `README.md`)
- Headless motion apply → Fidelity evaluation: evaluates output (evidence: `README.md`)
- GVHMR estimate → Landmark analysis: exports landmarks (evidence: `README.md`)
- Landmark analysis → Action specifications: guides beat sheet (evidence: `README.md`)
- Action specifications → Landmark retarget: configures retarget (evidence: `README.md`)
- Landmark retarget → FK apply: supplies lifted joints (evidence: `README.md`)
- FK apply → Live Blender bridge: runs in Blender (evidence: `pipeline/apply_mixamo_fk.py`)
- FK apply → Clip QA: gates motion (evidence: `README.md`)
- Clip QA → Reference comparison: checks against source (evidence: `README.md`)
- Reference comparison → Preview rendering: guides review (evidence: `README.md`)
- Rig setup → Duo setup: reuses rig setup (evidence: `pipeline/setup_duo.py`)
- Source video → Pair comparison: checks performer spacing (evidence: `README.md`)
- Duo setup → Pair comparison: provides duo scene (evidence: `README.md`)
- Duo setup → Mesh collision: provides characters (evidence: `README.md`)
- Action specifications → Pair comparison: configures comparison (evidence: `README.md`)
