Image-to-Video
Diffusers
English
robotics
video-generation
world-model
multiview
robot-manipulation
simulation
Instructions to use qiyuan-robot/PrimeSim with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use qiyuan-robot/PrimeSim 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("qiyuan-robot/PrimeSim", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
File size: 2,046 Bytes
272660c 7070771 d2b22a8 b8000e9 d2b22a8 2b213fa d2b22a8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | ---
license: apache-2.0
language:
- en
base_model:
- Wan-AI/Wan2.2-TI2V-5B
pipeline_tag: image-to-video
tags:
- robotics
- video-generation
- world-model
- multiview
- robot-manipulation
- simulation
library_name: diffusers
---
# PrimeSim
An action-conditioned, multiview world model that runs as a robot simulator. Given
the first frame of each camera view, a prompt and an action trajectory, it generates
what happens next.
- **Paper:** [arXiv 2611.04870](https://arxiv.org/abs/2611.04870)
- **Project page:** [primebottech.github.io/PrimeSim-website](https://primebottech.github.io/PrimeSim-website/)
- **Code:** [github.com/PrimebotTech/PrimeSim](https://github.com/PrimebotTech/PrimeSim) -- inference and training code
Trained on 30,110 hours of cross-embodiment data spanning 22 platforms. In simulation
it leads four of five WorldSimProbe suites and posts the best overall EWMBench score.
## Files
| file | use |
| --- | --- |
| `primesim_base.safetensors` | the midtrained model -- start here to fine-tune |
| `primesim_posttrain_g2.safetensors` | stage 4, causal few-step model -- use for inference |
Run `primesim_posttrain_g2` on the demos in the
[repository](https://github.com/PrimebotTech/PrimeSim) to see what posttraining adds.
## Requirements
**These weights are not self-contained.** The text encoder, VAE and tokenizer come
from [Wan-AI/Wan2.2-TI2V-5B](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B):
```bash
hf download Wan-AI/Wan2.2-TI2V-5B \
--include "models_t5_umt5-xxl-enc-bf16.pth" "Wan2.2_VAE.pth" "google/umt5-xxl/*" \
--local-dir checkpoints
```
Point `config/model/primesim.yaml` at the three resulting paths.
## Inference
Three camera views are generated together at 192x256, running above 10 FPS. An A100
or H100 (80 GB) is recommended: the 5B transformer and the 11 GB text encoder are
resident at the same time, which does not fit on a 24 GB card.
## License
Apache 2.0. **The training corpus is not distributed** and is not covered by this
licence -- the weights are released, the data is not.
|