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.

vae_test_h3_ostris_h3_image_vae_fp16_fp16

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
-
Safetensors
Model size
0.6B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for ostris/ostris_h3_image_vae

Finetuned
(25)
this model