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 model_index.json from Drexubery/WorldCrafter-Context: direct link, hf CLI and curl.
- Browser
- Download file 2 kB
-
https://huggingface.co/Drexubery/WorldCrafter-Context/resolve/main/model_index.json
- Command line
-
hf download hf://Drexubery/WorldCrafter-Context/model_index.json
-
curl -L -o model_index.json https://huggingface.co/Drexubery/WorldCrafter-Context/resolve/main/model_index.json
2 kB
| { | |
| "_class_name": "WorldCrafterPipeline", | |
| "_format": "worldcrafter_context_component_index_v1", | |
| "_loading": { | |
| "requires_custom_integration": true, | |
| "component_config": "inference_config.json", | |
| "note": "Component checkpoint for custom context-memory integration; not supported by the current Base/Fast entrypoints or standalone DiffusionPipeline.from_pretrained." | |
| }, | |
| "transformer": [ | |
| "worldcrafter", | |
| "WorldCrafterTransformer3DModel" | |
| ], | |
| "text_encoder": [ | |
| "transformers", | |
| "UMT5EncoderModel" | |
| ], | |
| "tokenizer": [ | |
| "transformers", | |
| "T5TokenizerFast" | |
| ], | |
| "vae": [ | |
| "diffusers", | |
| "AutoencoderKLWan" | |
| ], | |
| "scheduler": [ | |
| "worldcrafter", | |
| "WorldCrafterScheduler" | |
| ], | |
| "_component_sources": { | |
| "transformer": { | |
| "repo_id": "TencentARC/WorldCrafter-Base", | |
| "revision": "d6b4731d4cec53f90b6afaee5a0f1b77d29979aa", | |
| "subfolder": "transformer" | |
| }, | |
| "text_encoder": { | |
| "repo_id": "TencentARC/WorldCrafter-Fast", | |
| "revision": "d2ac12a654f8cafde4cb2e0ae7d5127ce2624939", | |
| "subfolder": "text_encoder" | |
| }, | |
| "tokenizer": { | |
| "repo_id": "TencentARC/WorldCrafter-Fast", | |
| "revision": "d2ac12a654f8cafde4cb2e0ae7d5127ce2624939", | |
| "subfolder": "tokenizer" | |
| }, | |
| "vae": { | |
| "repo_id": "TencentARC/WorldCrafter-Fast", | |
| "revision": "d2ac12a654f8cafde4cb2e0ae7d5127ce2624939", | |
| "subfolder": "vae" | |
| }, | |
| "scheduler": { | |
| "repo_id": "TencentARC/WorldCrafter-Fast", | |
| "revision": "d2ac12a654f8cafde4cb2e0ae7d5127ce2624939", | |
| "subfolder": "scheduler" | |
| } | |
| }, | |
| "_camera_adapter": { | |
| "path": "camera_adapter.bin", | |
| "format": "pytorch_state_dict", | |
| "dtype": "float32", | |
| "tensor_count": 400, | |
| "sha256": "54193515b30bd8e8474bacc745888fbb07dbeb4ca8ec0d364e470bec481e5f78", | |
| "camera_condition": "relray_absmap", | |
| "adaptation_method": "parallel", | |
| "attn_compress": 8 | |
| }, | |
| "_memory": { | |
| "type": "historical_frame_context", | |
| "encoder": null | |
| } | |
| } | |