Text-to-Image
Diffusers
Safetensors
MiniMax H3
English
image-to-image
image-editing
image-generation
Instructions to use ostris/ostris_h3_image_vae with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ostris/ostris_h3_image_vae with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ostris/ostris_h3_image_vae", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Ostris H3 Image VAE
This is a fine tune of just the decoder of the MiniMax-H3-Image VAE. It smoothes out some of the overly sharp details of the VAE and improves small text and face quality.
ComfyUI
Use ostris_h3_image_vae_fp16.safetensors. Put it in ComfyUI/models/vae/ and select it in place of the stock MiniMax-H3-Image VAE.
Diffusers
The repo root is also a diffusers AutoencoderKLMiniMaxH3Image checkpoint (config.json + diffusion_pytorch_model.safetensors, fp16). The encoder is unchanged, so it is a drop-in replacement for the vae component of MiniMax-H3-Image.
AutoencoderKLMiniMaxH3Image is currently only on diffusers main:
pip install git+https://github.com/huggingface/diffusers
Swap it into the MiniMax-H3-Image pipeline:
import torch
from diffusers import AutoencoderKLMiniMaxH3Image, ComponentsManager, ModularPipeline
manager = ComponentsManager()
manager.enable_auto_cpu_offload(device="cuda")
pipe = ModularPipeline.from_pretrained("MiniMaxAI/MiniMax-H3-Image", components_manager=manager)
pipe.load_components(dtype=torch.bfloat16)
vae = AutoencoderKLMiniMaxH3Image.from_pretrained("ostris/ostris_h3_image_vae", torch_dtype=torch.bfloat16)
pipe.update_components(vae=vae)
image = pipe(
prompt="A photograph of a street market at dusk, hand-painted signs, people browsing the stalls.",
height=4096,
width=4096,
generator=torch.Generator().manual_seed(42),
output="images",
)[0]
Or load the VAE on its own:
vae = AutoencoderKLMiniMaxH3Image.from_pretrained("ostris/ostris_h3_image_vae", torch_dtype=torch.float16)
- Downloads last month
- -
