ostris_h3_image_vae

ostris/ostris_h3_image_vae

作者
ostris
任务
图像生成
下载量
7,693
点赞数
93
趋势分
31
许可证
other
收录时间
2026/11/27

pipeline_tag: text-to-image library_name: diffusers license: other license_name: minimax-h3-image-community-license-agreement license_link: https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/blob/main/LICENSE language:

  • en tags:
  • text-to-image
  • image-to-image
  • image-editing
  • image-generation
  • minimax-h3 base_model:
  • MiniMaxAI/MiniMax-H3-Image

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)

内容来源:Hugging Face 模型卡

在 Hugging Face 查看