Instructions to use sand-ai/MAGI-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use sand-ai/MAGI-1 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("sand-ai/MAGI-1", 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") - MAGI-1
How to use sand-ai/MAGI-1 with MAGI-1:
# 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
Delete figures/logo_black.png
Animate the "La Casa de Arthur" logo on a black background. The animation starts with a stylized spaceship centered on the screen. The ship begins to shake slightly, its thrusters ignite with a purple-to-blue gradient glow, and it launches upward with force.
As it takes off, it leaves behind a shining sword that emerges in its place. The sword slowly drives into the center, and upon impact, it generates a shockwave that transforms into stylized sound waves (as seen in the logo), spreading outward to both sides.
As the waves reach the edges, they begin to form a curved glowing line that extends left and right, closing at the top to form the full circle of the logo.
Finally, the text "LA CASA DE ARTHUR" appears from below in a smooth fade-in with a purple-blue gradient and a soft glowing effect.
The entire style should remain elegant and modern, with subtle neon lighting effects, smooth animation, and a dark background.
