Image-to-Video
Diffusers
Safetensors
MagiHumanPipeline
text-to-video
image-text-to-video
text-to-audio
text-to-audio-video
image-to-audio-video
image-text-to-audio-video
multimodal
Instructions to use SII-GAIR/daVinci-MagiHuman-Base-1080p with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SII-GAIR/daVinci-MagiHuman-Base-1080p 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("SII-GAIR/daVinci-MagiHuman-Base-1080p", 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 text_encoder/config.json from SII-GAIR/daVinci-MagiHuman-Base-1080p: direct link, hf CLI and curl.
- Browser
- Download file 4.13 kB
-
https://huggingface.co/SII-GAIR/daVinci-MagiHuman-Base-1080p/resolve/main/text_encoder/config.json
- Command line
-
hf download hf://SII-GAIR/daVinci-MagiHuman-Base-1080p/text_encoder/config.json
-
curl -L -o config.json https://huggingface.co/SII-GAIR/daVinci-MagiHuman-Base-1080p/resolve/main/text_encoder/config.json
4.13 kB
| { | |
| "architectures": [ | |
| "T5GemmaForConditionalGeneration" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 2, | |
| "classifier_dropout_rate": 0.0, | |
| "decoder": { | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attn_logit_softcapping": 50.0, | |
| "classifier_dropout_rate": 0.0, | |
| "cross_attention_hidden_size": 3584, | |
| "dropout_rate": 0.0, | |
| "dtype": "bfloat16", | |
| "final_logit_softcapping": 30.0, | |
| "head_dim": 256, | |
| "hidden_activation": "gelu_pytorch_tanh", | |
| "hidden_size": 3584, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 14336, | |
| "is_decoder": true, | |
| "layer_types": [ | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention" | |
| ], | |
| "max_position_embeddings": 8192, | |
| "model_type": "t5_gemma_module", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 42, | |
| "num_key_value_heads": 8, | |
| "query_pre_attn_scalar": 256, | |
| "rms_norm_eps": 1e-06, | |
| "rope_theta": 10000.0, | |
| "sliding_window": 4096, | |
| "use_cache": true, | |
| "vocab_size": 256000 | |
| }, | |
| "dropout_rate": 0.0, | |
| "dtype": "bfloat16", | |
| "encoder": { | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attn_logit_softcapping": 50.0, | |
| "classifier_dropout_rate": 0.0, | |
| "dropout_rate": 0.0, | |
| "dtype": "bfloat16", | |
| "final_logit_softcapping": 30.0, | |
| "head_dim": 256, | |
| "hidden_activation": "gelu_pytorch_tanh", | |
| "hidden_size": 3584, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 14336, | |
| "layer_types": [ | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "full_attention" | |
| ], | |
| "max_position_embeddings": 8192, | |
| "model_type": "t5_gemma_module", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 42, | |
| "num_key_value_heads": 8, | |
| "query_pre_attn_scalar": 256, | |
| "rms_norm_eps": 1e-06, | |
| "rope_theta": 10000.0, | |
| "sliding_window": 4096, | |
| "use_cache": true, | |
| "vocab_size": 256000 | |
| }, | |
| "eos_token_id": [ | |
| 1, | |
| 107 | |
| ], | |
| "initializer_range": 0.02, | |
| "is_encoder_decoder": true, | |
| "model_type": "t5gemma", | |
| "pad_token_id": 0, | |
| "transformers_version": "4.57.6", | |
| "use_cache": true, | |
| "vocab_size": 256000 | |
| } | |