Roboparty/PartyMimic
Tentang
Mimik humanoid yang cepat, presisi, dan serbaguna
Proyek lainnyaPertumbuhan bintang terukur
- dalam 24 jam
- +2
- dalam 7 hari
- Mengumpulkan riwayat
- dalam 15 hari
- Mengumpulkan riwayat
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliPartyMimic
General humanoid motion tracking in minutes on one GPU. One whole-body tracking policy for a 41 h motion library, trained in about 30 min on a single RTX 4090, that tracks motions it has never seen, on Unitree G1 and RoboParty RP1. Results, videos, ablations and the recipe: project page.

Train
Linux x86_64, an NVIDIA GPU with a CUDA 12.8 driver, and uv.
git clone [email protected]:Roboparty/PartyMimic.git partymimic && cd partymimic
uv sync # mjlab, MuJoCo Warp, torch 2.9.0 (CUDA 12.8)
tools/download_data.sh # G1 and RP1 models, 40 LAFAN1 G1 clips
PartyMimic: motion tracking (G1, RP1)
tools/data/build_library.sh g1 # 10,745 G1 clips -> data/motions/g1_mix (BONES-SEED is gated: hf auth login)
HHT=<human-humanoid-tools checkout> tools/data/build_library.sh rp1 # the same clips on RP1 -> data/motions/rp1_mix
bash scripts/train.sh logs/g1 --robot g1mj --motion_dir data/motions/g1_mix # 12k iterations, ~30 min
bash scripts/train.sh logs/rp1 --robot rp1 --motion_dir data/motions/rp1_mix
mkdir -p deploy && uv run python tools/export_deploy_onnx.py logs/g1/last.pt deploy/g1.onnx # + deploy/g1.yaml
SIM2REAL=<sim2real checkout, tools/sim2real.patch applied> bash scripts/eval.sh logs/g1/last.pt eval/g1 g1
Common options: --ref_enc xattn (cross-attention reference encoder; on 24 GB add --pi_batch 1024),
--interface sparse5 (pelvis, torso, wrist and ankle poses instead of joint angles), --terrain (static boxes,
seats, stairs and walls inferred per clip and checked on the first run), --pipeline (two GPUs),
--init <run>/last.pt (fine-tune). uv run python -m partymimic.train -h lists all.
Project-page recipe (the results tables and checkpoints/g1_mlp.pt, rp1_mlp.pt)
uv run python tools/motion_prior.py data/motions/g1_mix data/motions/g1_mix_prior.npz --robot g1mj
R=(--obs_err kp --act_lag 0,0 --wrist_frame world --wrist_std 0 --wrist_ori_kernel 0
--dr_solref "" --dr_armature "" --dr_damping "" --dr_torsion ""
--reset_alloc lp --start_alloc lp --alloc_lambda 0.15 --alloc_last 1 --cover_win 100000000
--motion_prior data/motions/g1_mix_prior.npz)
bash scripts/train.sh logs/g1_page --robot g1mj --motion_dir data/motions/g1_mix --seed 0 "${R[@]}"
# RP1: --robot rp1 --motion_dir data/motions/rp1_mix, the same prior file; sparse5: --interface sparse5, no --obs_err kp
With load, contact and terrain: RP1 with DH116S hands
--robot rp1h is RP1 with DH116S hands (rigid in training) under the sparse keypoint command. Training adds what a
planner's commands meet in the world, seen by the world model and the critic but not by the policy: the clip's
terrain, a hidden payload of up to 2 kg per wrist, a virtual object squeezed between the hands and held by friction
alone (--grip: a hold flag in the observation, slip / drop / over-squeeze rewards, a load estimator from
proprioception), and the feet's torsional friction (--dr_torsion, on by default for RP1).
# RP1 clips in a directory of their own (its terrain is inferred for rp1h): the full BONES-SEED on RP1
tools/data/build_library.sh bones_full && HHT=<human-humanoid-tools checkout> tools/data/build_library.sh rp1_full
mkdir -p data/motions/rp1h_lib && find $PWD/data/motions/rp1_bones_full -name '*.npz' -exec ln -s -t data/motions/rp1h_lib {} +
B=(--robot rp1h --motion_dir data/motions/rp1h_lib --interface sparse5 --kp_skip --kp_aux 1 --terrain
--std_scale 1.0 --act_lag 0,2 --dr_kp 0.8,1.2 --dr_kd 0.8,1.2 --ckpt_every 10000)
FT=(--kp_steps 0 --lr 1e-4 --pi_lr_mult 1 --lr_decay_ret 0 --lr_decay_by 0)
# 1. without the object: 200k iterations from scratch (10.8 h on one RTX 4090)
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
bash scripts/train.sh logs/h_base "${B[@]}" --dr_torsion "" --iterations 200000
# 2. the held object: three 30k-iteration fine-tunes, each from the last (3 x 3.3 h)
I=logs/h_base/last.pt
for n in 1 2 3; do
bash scripts/train.sh logs/h_grip$n "${B[@]}" "${FT[@]}" --grip --dr_torsion "" --iterations 30000 --init $I
I=logs/h_grip$n/last.pt
done
# 3. foot torsional friction: 15k iterations (1.6 h)
bash scripts/train.sh logs/h_final "${B[@]}" "${FT[@]}" --grip --iterations 15000 --init $I
uv run python tools/export_deploy_onnx.py logs/h_final/last.pt deploy/rp1_dh116s.onnx # + .yaml
--init widens a checkpoint for --grip or a new --dr_* term, one of the two at a time, hence the order.
The shipped checkpoint:
| File | Contents |
|---|---|
checkpoints/rp1_dh116s.onnx + .yaml |
deploy policy (28 body joints, 50 Hz) |
checkpoints/rp1_dh116s.pt |
policy, world model, critic (for --init) |
assets/rp1_dh116s/ |
URDF with meshes, training MJCF (hands rigid, primitive collision shapes) |
ONNX inputs, history H = 10: proprio [H·90] (joint pos − default, joint vel, root angular velocity, projected
gravity, previous action), root_quat_hist [H·8] (robot and reference root quaternions), ref_kp [11·6·7] (world
position + wxyz quaternion of pelvis, torso, wrists and ankles at the current and 10 future frames), hold [H]
(1: squeeze-hold the object between the hands). Outputs: action [28] and load_est [3] (friction / 50 N,
squeeze / 50 N, slip speed in m/s). The policy does not drive the fingers; close them with their own controller
while hold is 1. Step 3 brings the stance-foot yaw rate at gait start from 1.07 to 0.26 rad/s (simulated at
torsion 0.01) with crate lifts unchanged.
License
Code: MIT (LICENSE); derived from BlinkMimic, supermimic_vibed and InstantTrack (MIT). The checkpoints and motion libraries follow the licenses of their datasets. Sources, attribution and terms: THIRD_PARTY_NOTICES.md.
Jelajahi proyek terkait
Memuat…
