Skip to content
xodus777Public

About

MorphGS: Morphology-Adaptive Articulated 3D Motion Transfer from Videos

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

MorphGS: Morphology-Adaptive Articulated 3D Motion Transfer from Videos

Project Page arXiv

Official implementation of MorphGS: Morphology-Adaptive Articulated 3D Motion Transfer from Videos.

Taeyeon Kim*, Youngju Na*, Jumin Lee, Sebin Lee, Minhyuk Sung, and Sung-Eui Yoon†

*Equal contribution. †Corresponding author.

Tennis motion retargeted to Ninja Cow motion retargeted to Moose Seagull motion retargeted to ChickenDC Dog motion retargeted to Spot

Transferring articulated motion from monocular videos to rigged 3D characters is challenging due to pose ambiguity in 2D observations and morphological differences between source and target. Existing approaches often follow a reconstruct-then-retarget paradigm, tying transfer quality to intermediate 3D reconstruction and limiting applicability to categories with parametric templates. We propose MorphGS, a framework that formulates motion retargeting as a target-driven analysis-by-synthesis problem, directly optimizing target morphology and pose through image-space supervision. A rig-coupled morphology parameterization factorizes character identity from time-varying joint rotations, while dense 2D-3D correspondences and synthesized views provide complementary structural and multi-view guidance. Experiments on synthetic benchmarks and real-world videos show consistent improvements over baselines.

Installation

conda create -n morphgs python=3.10 -y
conda activate morphgs

# PyTorch (CUDA 11.8)
pip install torch==2.0.1 torchvision==0.15.2 --index-url https://download.pytorch.org/whl/cu118

# PyTorch3D (see https://github.com/facebookresearch/pytorch3d for prebuilt wheels)
pip install "git+https://github.com/facebookresearch/pytorch3d.git"

pip install -r requirements.txt

# CUDA extensions
pip install -e src/extlibs/latent-gaussian-rasterization --no-build-isolation
pip install -e src/extlibs/simple-knn --no-build-isolation

Optional preprocessing components:

  • Geo-Aware semantic features: clone GeoAware-SC into src/extlibs/GeoAware and install it with pip install -e . --no-build-isolation.
  • SV4D 2.0 synthesized views: clone generative-models branch sp4d into src/extlibs/generative-models and download its checkpoints.

Try Demo

Download the demo data from Google Drive and place it at demo/. The demo includes four scenes across different categories:

  • Humanoid: tennis_to_Ninja
  • Quadruped: cow_to_moose1DOG
  • Bird: seagull_to_chickenDC
  • Robot: dog_to_spot
Demo Data Sources

Video sources:

Target character sources:

Train directly from the demo configs:

python src/main.py --config demo/tennis_to_Ninja.yaml
python src/main.py --config demo/cow_to_moose1DOG.yaml
python src/main.py --config demo/seagull_to_chickenDC.yaml
python src/main.py --config demo/dog_to_spot.yaml

Outputs are written to output/<experiment>/. demo/<experiment>.yaml is a shorthand for configs/demo/<experiment>.yaml; the experiment name is inferred from the config filename.

Running On A New Video

Set the dataset root if you are not using the bundled demo/ directory:

export MORPHGS_DATA_ROOT=/path/to/data

1. Source Clip

Prepare an object-centric video clip at:

$MORPHGS_DATA_ROOT/videos/<scene>/rgb.mp4

The subject should be segmented, centered in a square frame, and composited on a white background. We recommend SAM 3 for background masking. The rgb.mp4 frames themselves must also be background-masked object-centric square frames.

2. Target Character

Prepare a rigged target character at:

$MORPHGS_DATA_ROOT/characters/<target>/

Required files:

characters/<target>/
├── mesh.obj
├── texture.png               # optional
└── rigging/mesh_ori_rig.txt  # RigNet-format skeleton + skinning weights

The release training and rendering scripts use the RigNet-format rig at rigging/mesh_ori_rig.txt.

3. Preprocess

python src/preprocess/preprocess_src.py $MORPHGS_DATA_ROOT/videos/<scene>/rgb.mp4 \
    --mode sv4d
python src/preprocess/preprocess_tgt.py $MORPHGS_DATA_ROOT/characters/<target>

preprocess_src.py writes processed_videos/<scene>/. preprocess_tgt.py writes target canonical-view renders, cameras, visibility masks, and semantic features. The released demo data includes the lightweight processed frames and target assets, plus cache/<experiment>/feats_3d.pt and cache/<experiment>/mapping/ so demo runs do not need to ship per-view 2D feature tensors.

Use --sv4d_stride / --sv4d_max_frames to subsample longer clips.

4. Register And Train

Create configs/demo/<scene>_to_<target>.yaml, or pass project paths with CLI overrides. Demo config filenames are parsed as <source>_to_<target>, so no experiment registration step is required.

python src/main.py --config configs/base.yaml --experiment <scene>_to_<target>

On the first run this builds caches under output/<experiment>/, including dense 2D-3D correspondence maps, aggregated 3D features, and the GT thinning cache.

Training

python src/main.py \
    --config configs/base.yaml \
    --experiment tennis_to_Ninja \
    [optional] --model.opt.iterations=5000
  • --config: training config. configs/base.yaml is the release default.
  • --experiment: <source>_to_<target> pair. This directly resolves $MORPHGS_DATA_ROOT/processed_videos/<source> and $MORPHGS_DATA_ROOT/characters/<target>.
  • Any config key can be overridden from the CLI as --key.subkey=value.
  • Runs are seeded from project.seed in the config. Override it with --project.seed=<seed> when needed.

A 5k-iteration run on a ~10K-vertex target takes roughly 5 minutes on a single RTX 4090.

Rendering

python src/render.py \
    --config demo/tennis_to_Ninja.yaml \
    [optional] --iteration 5000

Citation

@inproceedings{kim2026morphgs,
  title     = {MorphGS: Morphology-Adaptive Articulated 3D Motion Transfer from Videos},
  author    = {Kim, Taeyeon and Na, Youngju and Lee, Jumin and Lee, Sebin and Sung, Minhyuk and Yoon, Sung-Eui},
  booktitle = {European Conference on Computer Vision (ECCV)},
  year      = {2026},
}

License

The original MorphGS code is released under the MIT License in LICENSE.md. This repository also includes third-party code and code adapted from third-party projects. Those components retain their own licenses and notices; see THIRD_PARTY_NOTICES.md for attribution.

About

MorphGS: Morphology-Adaptive Articulated 3D Motion Transfer from Videos

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages