Run this model with HF Jobs
Run da-eun07/rest2art-models on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/da-eun07/rest2art-models. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/da-eun07/rest2art-models on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use da-eun07/rest2art-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Wan2.2
How to use da-eun07/rest2art-models with Wan2.2:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Inference
- Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse filesFiles changed (10)
- .gitattributes+1-34
- README.mdAdded+110
- wan2.2-i2v-loras/README.mdAdded+29
- wan2.2-i2v-loras/config/wan_moe_i2v_distill_with_lora_vbvr.jsonAdded+46
- wan2.2-i2v-loras/loras/Wan22_I2V_VBVR_HIGH_rank_64_fp16.safetensorsAdded+3
- wan2.2-i2v-loras/loras/wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_1022.safetensorsAdded+3
- wan2.2-i2v-loras/loras/wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_1022.safetensorsAdded+3
- wan2.2-i2v-loras/scripts/download_assets.shAdded+18
- wan2.2-i2v-loras/scripts/minimal_infer.pyAdded+83
- wan2.2-i2v-loras/scripts/render_config.pyAdded+45
1234567891011121314151617181920212223242526272829303132333435*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.mlmodel filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text12*.safetensors filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110---license: apache-2.0pretty_name: "rest2art Model Checkpoints"base_model:- Wan-AI/Wan2.2-I2V-A14Btask_categories:- image-to-videolanguage:- entags:- articulated-objects- reconstruction- image-to-video- lora- wan2.2---
# [ECCV'26] Articulated Object Reconstruction from Rest-State Observation
<!-- TODO: replace with real links once public -->[](https://example.com)[](https://arxiv.org)[](https://github.com)[](https://huggingface.co/datasets/da-eun07/rest2art)
## Model Checkpoints
Pretrained models used by the rest2art pipeline. We only re-host the Wan2.2 video-generationLoRAs, whose inference is config-sensitive and hard to reproduce. Every other model is linked toits original repo (cleaner attribution and licensing), so fetch those from the source.
| Model | Hosting | Source | License ||---|---|---|---|| GPT (OpenAI API) | API, no ckpt | OpenAI | n/a || SAM 3 | link | [facebook/sam3](https://huggingface.co/facebook/sam3) | see repo || Qwen3-VL-8B-Instruct | link | [Qwen/Qwen3-VL-8B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct) | Apache-2.0 || Wan2.2-I2V-A14B + 3 LoRAs | hosted (`wan2.2-i2v-loras/`) | [Wan-AI](https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B), [lightx2v](https://huggingface.co/lightx2v/Wan2.2-Distill-Loras), [Kijai](https://huggingface.co/Kijai/WanVideo_comfy) | Apache-2.0 || CoTracker3 (scaled_offline) | link | [facebook/cotracker3](https://huggingface.co/facebook/cotracker3) | CC BY-NC 4.0 |
## Get started
Put every checkpoint under one `ckpt/` root, then point the pipeline flags at it.
### 1. Download checkpoints
```bashmkdir -p ckpt && cd ckpt
# this collection: Wan2.2 LoRAs + config + loaderhuggingface-cli download da-eun07/rest2art-models --local-dir ./rest2art-models
# Wan2.2 base model, UMT5-XXL T5, VAE (~119 GB) from Wan-AIbash ./rest2art-models/wan2.2-i2v-loras/scripts/download_assets.sh ./Wan-AI
# CoTracker3 offline checkpointhuggingface-cli download facebook/cotracker3 scaled_offline.pth --local-dir ./co-tracker```
SAM 3 (`facebook/sam3`) and Qwen3-VL-8B (`Qwen/Qwen3-VL-8B-Instruct`) are pulled from their reposon first run, so no manual download is needed. Resulting layout:
```ckpt/ rest2art-models/wan2.2-i2v-loras/loras/*.safetensors Wan-AI/Wan2.2-I2V-A14B/ co-tracker/scaled_offline.pth```
### 2. Render the Wan2.2 config
The LightX2V config needs absolute LoRA paths, so render a local copy:
```bashcd ckpt/rest2art-models/wan2.2-i2v-loraspython scripts/render_config.py --repo . --base ../../Wan-AI/Wan2.2-I2V-A14B --out config.local.json```
### 3. Run the pipeline
From the rest2art project root, point the flags at your `ckpt/` root:
```bashpython -m rest2art.pipeline.main \ --scene <scene> \ --wan_path ckpt/Wan-AI/Wan2.2-I2V-A14B \ --config_json ckpt/rest2art-models/wan2.2-i2v-loras/config.local.json \ --cotracker_ckpt ckpt/co-tracker/scaled_offline.pth \ --vlm_path Qwen/Qwen3-VL-8B-Instruct```
To run only the Wan2.2 video step, follow [`wan2.2-i2v-loras/`](./wan2.2-i2v-loras).
## License
Hosted LoRAs are Apache-2.0 (Wan-AI, lightx2v); the VBVR LoRA follows[Kijai/WanVideo_comfy](https://huggingface.co/Kijai/WanVideo_comfy) terms. Linked models keeptheir own licenses (see table). Config and scripts are Apache-2.0. To request removal from thismirror, open a discussion.
## Citation
```bibtex@inproceedings{lee2026rest2art, title={Articulated Object Reconstruction from Rest-State Observation}, author={Lee, Daeun and Lee, Jaeah and Kim, Woosung and Jung, Haebeom and Park, Jaesik}, booktitle={European Conference on Computer Vision (ECCV)}, year={2026}}```1234567891011121314151617181920212223242526272829# Wan2.2 I2V 4-step Distill LoRAs (rest2art video generation)
The only re-hosted weights in [da-eun07/rest2art-models](../README.md): three rank-64, 4-stepdistillation LoRAs for rest-state to articulated video synthesis (dual-expert MoE, two on thehigh-noise expert including VBVR, one on the low-noise expert). Sources, attribution, andlicenses live in the [collection README](../README.md); this page is only how to run them.
## Contents
| File | Expert | dtype ||---|---|---|| `loras/wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_1022.safetensors` | high-noise | bf16 || `loras/Wan22_I2V_VBVR_HIGH_rank_64_fp16.safetensors` | high-noise (stacked) | fp16 || `loras/wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_1022.safetensors` | low-noise | bf16 |
## Reproduce
The base model, T5, and VAE are not re-hosted; `download_assets.sh` fetches them from Wan-AI.
```bashbash scripts/download_assets.sh /path/to/basepython scripts/render_config.py --repo . --base /path/to/base/Wan2.2-I2V-A14B --out config.local.jsonpython scripts/minimal_infer.py --base /path/to/base/Wan2.2-I2V-A14B \ --config config.local.json --image front.png --prompt "..." --out out.mp4```
Settings (`config/wan_moe_i2v_distill_with_lora_vbvr.json`): 4 steps, 720x1280, 81 frames,`guide_scale=[3.5,3.5]`, `shift=5.0`, `cfg=false`, flash-attn 3, bf16. Both high-noise LoRAs arestacked on the high-noise expert (each `strength: 1.0`); `use_image_encoder=false` (no CLIP).12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ "infer_steps": 4, "target_video_length": 81, "text_len": 512, "target_height": 720, "target_width": 1280, "self_attn_1_type": "flash_attn3", "cross_attn_1_type": "flash_attn3", "cross_attn_2_type": "flash_attn3", "rope_type": "torch", "sample_guide_scale": [ 3.5, 3.5 ], "sample_shift": 5.0, "enable_cfg": false, "cpu_offload": false, "offload_granularity": "block", "t5_cpu_offload": false, "vae_cpu_offload": false, "use_image_encoder": false, "boundary_step_index": 2, "denoising_step_list": [ 1000, 750, 500, 250 ], "lora_configs": [ { "name": "high_noise_model", "path": "loras/wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_1022.safetensors", "strength": 1.0 }, { "name": "high_noise_model", "path": "loras/Wan22_I2V_VBVR_HIGH_rank_64_fp16.safetensors", "strength": 1.0 }, { "name": "low_noise_model", "path": "loras/wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_1022.safetensors", "strength": 1.0 } ]}123version https://git-lfs.github.com/spec/v1oid sha256:a4d2256f5c166c4a8d5b256b2134720aee2c56415c5efc37a6d060164eb06244size 630695648123version https://git-lfs.github.com/spec/v1oid sha256:887c3bdeb74e83859c920438e16ca31f39ab18ce189abc5f0e36f8348c5bbb19size 634645944123version https://git-lfs.github.com/spec/v1oid sha256:8833bd4fd7c8eabebf0bc8ee5cfaf47f4f310ce116928a02c1adf8941dd4b0f1size 739472104123456789101112131415161718#!/usr/bin/env bash# Download the base assets that this repo intentionally does NOT re-host.# All base weights belong to Wan-AI (Apache-2.0); we only mirror the LoRAs.## Usage: bash scripts/download_assets.sh /path/to/destset -euo pipefail
DEST="${1:-./base}"mkdir -p "$DEST"
echo ">> Downloading Wan-AI/Wan2.2-I2V-A14B (base DiT experts + UMT5-XXL T5 + VAE + tokenizer)"echo ">> This is ~119 GB. Destination: $DEST/Wan2.2-I2V-A14B"huggingface-cli download Wan-AI/Wan2.2-I2V-A14B \ --local-dir "$DEST/Wan2.2-I2V-A14B"
echoecho ">> Done. Base model at: $DEST/Wan2.2-I2V-A14B"echo ">> The 3 LoRAs are already in this repo under loras/."1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283#!/usr/bin/env python3"""Minimal reproduction of our Wan2.2 I2V + VBVR 4-step video generation.
Distilled from the project's pipeline/video_gen.py. Loads the LightX2V pipelinewith the dual-expert distill LoRAs (incl. the stacked VBVR high-noise LoRA) andruns one image-to-video generation.
Requires: lightx2v (https://github.com/ModelTC/LightX2V) + its deps (flash-attn 3).
python scripts/minimal_infer.py \ --base /path/to/Wan2.2-I2V-A14B \ --config config.local.json \ --image input.png --prompt "..." --out out.mp4"""import argparseimport torchfrom lightx2v import LightX2VPipeline
def patch_lightx2v_dtype(infer_dtype=torch.bfloat16): """Force all inference ops to bf16 (mixed fp16/bf16 LoRAs are cast on apply).""" from lightx2v.common.ops.mm.mm_weight import MMWeight from lightx2v.common.ops.conv.conv3d import Conv3dWeight from lightx2v.common.ops.attn.flash_attn import FlashAttn2Weight, FlashAttn3Weight
_mm = MMWeight.apply
def mm(self, x, *a, **k): if self.weight is not None and self.weight.dtype != infer_dtype: self.weight = self.weight.to(infer_dtype) return _mm(self, x.to(infer_dtype), *a, **k) MMWeight.apply = mm
_cv = Conv3dWeight.apply
def cv(self, x, *a, **k): if self.weight is not None and self.weight.dtype != infer_dtype: self.weight = self.weight.to(infer_dtype) return _cv(self, x.to(infer_dtype), *a, **k) Conv3dWeight.apply = cv
def wrap(orig): def f(self, q, k_, v, *a, **kw): return orig(self, q.to(infer_dtype), k_.to(infer_dtype), v.to(infer_dtype), *a, **kw) return f FlashAttn2Weight.apply = wrap(FlashAttn2Weight.apply) FlashAttn3Weight.apply = wrap(FlashAttn3Weight.apply)
NEGATIVE_PROMPT = ( "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止," "整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指," "画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合," "静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走")
def main(): ap = argparse.ArgumentParser() ap.add_argument("--base", required=True, help="Wan2.2-I2V-A14B dir") ap.add_argument("--config", required=True, help="Rendered config (see render_config.py)") ap.add_argument("--image", required=True) ap.add_argument("--prompt", required=True) ap.add_argument("--out", required=True) ap.add_argument("--seed", type=int, default=42) ap.add_argument("--negative", default=NEGATIVE_PROMPT) args = ap.parse_args()
patch_lightx2v_dtype() pipe = LightX2VPipeline(model_path=args.base, model_cls="wan2.2_moe_distill", task="i2v") pipe.create_generator(config_json=args.config) pipe.generate( seed=args.seed, image_path=args.image, prompt=args.prompt, negative_prompt=args.negative, save_result_path=args.out, ) print(f"Saved: {args.out}")
if __name__ == "__main__": main()123456789101112131415161718192021222324252627282930313233343536373839404142434445#!/usr/bin/env python3"""Expand the portable config's relative LoRA paths into absolute paths.
The shipped config uses repo-relative LoRA paths (loras/*.safetensors) so thebundle is portable. LightX2V expects absolute paths, so render a local copy.
Usage: python scripts/render_config.py --repo . --base /path/to/Wan2.2-I2V-A14B \ --out config.local.json"""import argparseimport jsonimport os
def main(): ap = argparse.ArgumentParser() ap.add_argument("--repo", required=True, help="Path to this bundle (dir with loras/, config/)") ap.add_argument("--base", required=True, help="Path to Wan2.2-I2V-A14B base model dir") ap.add_argument("--config", default=None, help="Config template (default: <repo>/config/wan_moe_i2v_distill_with_lora_vbvr.json)") ap.add_argument("--out", required=True, help="Where to write the rendered config") args = ap.parse_args()
repo = os.path.abspath(args.repo) cfg_path = args.config or os.path.join(repo, "config", "wan_moe_i2v_distill_with_lora_vbvr.json") with open(cfg_path) as f: cfg = json.load(f)
for lc in cfg.get("lora_configs", []): p = lc["path"] if not os.path.isabs(p): p = os.path.join(repo, p) if not os.path.exists(p): raise FileNotFoundError(f"LoRA not found: {p}") lc["path"] = os.path.abspath(p)
with open(args.out, "w") as f: json.dump(cfg, f, indent=4) print(f"Wrote {args.out}") print(f"Base model dir (pass as model_path): {os.path.abspath(args.base)}")
if __name__ == "__main__": main().gitattributes+1-34
README.mdAdded+110
wan2.2-i2v-loras/README.mdAdded+29
wan2.2-i2v-loras/config/wan_moe_i2v_distill_with_lora_vbvr.jsonAdded+46
wan2.2-i2v-loras/loras/Wan22_I2V_VBVR_HIGH_rank_64_fp16.safetensorsAdded+3
wan2.2-i2v-loras/loras/wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_1022.safetensorsAdded+3
wan2.2-i2v-loras/loras/wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_1022.safetensorsAdded+3
wan2.2-i2v-loras/scripts/download_assets.shAdded+18
wan2.2-i2v-loras/scripts/minimal_infer.pyAdded+83
wan2.2-i2v-loras/scripts/render_config.pyAdded+45