Image-Text-to-Video
Diffusers
Safetensors
text-to-video
image-to-video
video-to-video
text-to-audio-video
image-to-audio-video
image-text-to-audio-video
video-to-audio-video
audio-to-audio-video
audio-video-generation
multimodal
synchronized-audio-video
reference-to-audio-video
Instructions to use MiniMaxAI/MiniMax-H3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use MiniMaxAI/MiniMax-H3 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MiniMaxAI/MiniMax-H3", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| # SPDX-License-Identifier: Apache-2.0 | |
| # Adapted from https://github.com/junjun3518/alias-free-torch under the Apache License 2.0 | |
| import torch.nn as nn | |
| from .dac_alias_free_resample import UpSample1d, DownSample1d | |
| class Activation1d(nn.Module): | |
| def __init__( | |
| self, | |
| activation, | |
| up_ratio: int = 2, | |
| down_ratio: int = 2, | |
| up_kernel_size: int = 12, | |
| down_kernel_size: int = 12, | |
| ): | |
| super().__init__() | |
| self.up_ratio = up_ratio | |
| self.down_ratio = down_ratio | |
| self.act = activation | |
| self.upsample = UpSample1d(up_ratio, up_kernel_size) | |
| self.downsample = DownSample1d(down_ratio, down_kernel_size) | |
| # x: [B,C,T] | |
| def forward(self, x): | |
| x = self.upsample(x) | |
| x = self.act(x) | |
| x = self.downsample(x) | |
| return x | |