Image-to-Video
Diffusers
WorldCrafterPipeline
worldcrafter
camera-control
autoregressive
context-memory
Instructions to use Drexubery/WorldCrafter-Context with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Drexubery/WorldCrafter-Context 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("Drexubery/WorldCrafter-Context", 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
|
Download README.md from Drexubery/WorldCrafter-Context: direct link, hf CLI and curl.
- Browser
- Download file 2.88 kB
-
https://huggingface.co/Drexubery/WorldCrafter-Context/resolve/main/README.md
- Command line
-
hf download hf://Drexubery/WorldCrafter-Context/README.md
-
curl -L -o README.md https://huggingface.co/Drexubery/WorldCrafter-Context/resolve/main/README.md
2.88 kB
| license: mit | |
| library_name: diffusers | |
| pipeline_tag: image-to-video | |
| tags: | |
| - worldcrafter | |
| - camera-control | |
| - autoregressive | |
| - context-memory | |
| - arxiv:2609.24984 | |
| # WorldCrafter-Context | |
| **An autoregressive video baseline with standard historical-frame context memory | |
| and UCPE camera control, without a memory encoder.** | |
| WorldCrafter-Context is an intermediate training checkpoint released to help | |
| researchers fine-tune the model and develop their own memory mechanisms, such as | |
| point-cloud conditioning. It precedes the learned memory encoder used by | |
| WorldCrafter-Base and WorldCrafter-Fast. | |
| ## Components | |
| | Component | Source | | |
| | --- | --- | | |
| | Transformer | `TencentARC/WorldCrafter-Base`, `transformer/` | | |
| | UCPE camera adapter | This repository, `camera_adapter.bin` (FP32, approximately 2.10 GB) | | |
| | Text encoder, tokenizer, VAE and scheduler | `TencentARC/WorldCrafter-Fast` | | |
| | Memory encoder | None; history is provided as video latents | | |
| Shared components are referenced at fixed revisions in `inference_config.json` | |
| and `model_index.json`; their weights are not duplicated here. `manifest.json` | |
| records file hashes and sizes. | |
| ## Download | |
| Install the Hugging Face CLI with `pip install huggingface_hub`, then run: | |
| ```bash | |
| hf download Drexubery/WorldCrafter-Context --local-dir weights/WorldCrafter-Context | |
| hf download TencentARC/WorldCrafter-Base \ | |
| --revision d6b4731d4cec53f90b6afaee5a0f1b77d29979aa \ | |
| --include "transformer/*" --local-dir weights/WorldCrafter-Base | |
| hf download TencentARC/WorldCrafter-Fast \ | |
| --revision d2ac12a654f8cafde4cb2e0ae7d5127ce2624939 \ | |
| --include "text_encoder/*" "tokenizer/*" "vae/*" "scheduler/*" \ | |
| --local-dir weights/WorldCrafter-Fast | |
| ``` | |
| These commands download only the shared components needed by Context. Existing | |
| matching files can be reused. Keep the downloaded configuration and weight files | |
| together. | |
| ## Construct the baseline | |
| Combine Base's shared transformer, this repository's UCPE adapter and Fast's | |
| text encoder, tokenizer, VAE and scheduler. Use historical video latents as context | |
| without a memory encoder; do not load Base/Fast's additional LoRA, camera adapters | |
| or RepEncoder. See the [training documentation](https://github.com/TencentARC/WorldCrafter/tree/main/training#worldcrafter-context-baseline). | |
| `camera_adapter.bin` is the original FP32 PyTorch state dictionary, with 400 | |
| `blocks.<index>.cam_self_attn.*` tensors and no outer checkpoint wrapper. | |
| This release is for custom integration; the current Base/Fast entrypoints and | |
| standalone `DiffusionPipeline.from_pretrained` do not load Context automatically. | |
| ## Links | |
| - [WorldCrafter code](https://github.com/TencentARC/WorldCrafter) | |
| - [Training documentation](https://github.com/TencentARC/WorldCrafter/tree/main/training) | |
| - [Paper](https://arxiv.org/abs/2609.24984) | |
| - [Project website](https://drexubery.github.io/WorldCrafter/) | |