Views
No views yet
1conda create -n riganything -y python=3.11
2conda activate riganything1# GPU example (CUDA 12.x) — pick the right wheel from PyTorch website
2
3# 1) Install PyTorch that matches your system
4pip install torch torchvision --index-url https://download.pytorch.org/whl/cu126
5
6# 2) Install project dependencies
7pip install -r requirements.txtbpy). The bpy PyPI package works in headless environments; alternatively, you may use a system Blender installation. If you run into OpenGL/GLX issues on a server, consider an off‑screen setup (e.g., OSMesa/Xvfb) and ensure libGL is available.open3d/pymeshlab may require system GL libraries on Linux (e.g., libgl1).ckpt/.hf download Isabellaliu/RigAnything --local-dir ckpt/.glb or .obj as input.sh scripts/inference.sh <path_to_mesh.(glb|obj)> <simplify_flag: 0|1> <target_face_count>sh scripts/inference.sh data_examples/spyro_the_dragon.glb 1 8192outputs/<asset_name>/ with these key files:<name>_simplified.glb: the simplified input mesh used for inference<name>_simplified.npz: intermediate results (joints, weights, etc.)<name>_simplified_rig.glb: the final rigged mesh you can import into Blenderinference.log: logs from all steps1# 1) Optional: simplify
2python inference_utils/mesh_simplify.py \
3 --data_path data_examples/spyro_the_dragon.glb \
4 --mesh_simplify 1 \
5 --simplify_count 8192 \
6 --output_path outputs/spyro_the_dragon
7
8# 2) Inference (uses config.yaml + checkpoint)
9python inference.py \
10 --config config.yaml \
11 --load ckpt/riganything_ckpt.pt \
12 -s inference true \
13 -s inference_out_dir outputs/spyro_the_dragon \
14 --mesh_path outputs/spyro_the_dragon/spyro_the_dragon_simplified.glb
15
16# 3) Visualize / export rigged GLB
17python inference_utils/vis_skel.py \
18 --data_path outputs/spyro_the_dragon/spyro_the_dragon_simplified.npz \
19 --save_path outputs/spyro_the_dragon \
20 --mesh_path outputs/spyro_the_dragon/spyro_the_dragon_simplified.glb.glb is supported directly..obj is supported and will be converted to .glb internally (without textures).cuda:0). Ensure sufficient VRAM; otherwise consider simplifying the mesh (higher simplification ratio / lower face count).bpy complains about display/GL, install the necessary GL libraries and/or use an off‑screen context. Using the bpy PyPI wheel typically helps for server environments.@article{liu2025riganything,
title = {RigAnything: Template-free autoregressive rigging for diverse 3D assets},
author = {Liu, Isabella and Xu, Zhan and Wang, Yifan and Tan, Hao and Xu, Zexiang and Wang, Xiaolong and Su, Hao and Shi, Zifan},
journal = {ACM Transactions on Graphics (TOG)},
volume = {44},
number = {4},
pages = {1--12},
year = {2025},
publisher = {ACM}
}