Image-to-Video
Diffusers
Wan2.2
video-generation
human-motion
mesh-conditioning
depth-conditioning
lora
Instructions to use lizirulestheworld/ReMoVe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lizirulestheworld/ReMoVe with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.2-TI2V-5B-Diffusers", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("lizirulestheworld/ReMoVe") prompt = "A man with short gray hair plays a red electric guitar." input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png") output = pipe(image=input_image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Wan2.2
How to use lizirulestheworld/ReMoVe 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
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
ReMoVe: Refining a Video Model's Own Motion for Coherent Human Video Generation
ReMoVe improves human-video motion coherence by refining the motion of a Wan2.2-TI2V-5B video model with rendered mesh and depth conditioning.
Model composition
This release contains the ReMoVe weights only:
Wan2.2-TI2V-5B base model
+ ReMoVe LoRA adapter
+ ReMoVe expanded patch embedding
The Wan2.2 base model is not included. Download it from the official Wan2.2-TI2V-5B Diffusers model.
Usage
Clone the official ReMoVe code and install the required dependencies:
git clone https://github.com/Lizruletheworld/ReMoVe.git
cd ReMoVe
bash setup/clone_tools.sh
bash setup/install_envs.sh
Download this checkpoint and the official Wan2.2 base model:
bash scripts/download_model_weights.sh --source huggingface
Generate a coarse Wan2.2 video:
python scripts/coarse/generate_video.py \
--image examples/lunges/head.jpg \
--prompt "A person stepping one foot forward into a deep lunge, bending both knees, then pushing back to a standing position and repeating." \
--output examples/lunges/coarse.mp4 \
--height 704 --width 1280 --num_frames 81 --fps 24
Run ReMoVe:
bash run_pipeline.sh \
--video examples/lunges/coarse.mp4 \
--prompt "A person stepping one foot forward into a deep lunge, bending both knees, then pushing back to a standing position and repeating." \
--head examples/lunges/head.jpg \
--work outputs/lunges
An existing coarse Wan2.2 video can also be used directly as the input video.
- Downloads last month
- 26
Model tree for lizirulestheworld/ReMoVe
Base model
Wan-AI/Wan2.2-TI2V-5B-Diffusers