Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

2.9 KB
Raw Blame
"""Stable Diffusion 3.5 starter models."""

from invokeai.backend.model_manager.starter_models.common import TINY_AUTOENCODER_NOTE, gemma2_2b_encoder
from invokeai.backend.model_manager.starter_models.types import StarterModel
from invokeai.backend.model_manager.taxonomy import (
    BaseModelType,
    ModelFormat,
    ModelType,
    PiDDecoderVariantType,
)

# Same network and file name as TAEF1; the base override the installer sends is what files it under SD3.
taesd3 = StarterModel(
    source_urls=["https://huggingface.co/madebyollin/taesd3"],
    name="TAESD3 (SD3 preview decoder)",
    base=BaseModelType.StableDiffusion3,
    source="https://huggingface.co/madebyollin/taesd3/resolve/d58dcaccd2b36fcb7a6b9e93c1cc507acab5a778/diffusion_pytorch_model.safetensors",
    description=f"Sharp live previews for SD3.5. {TINY_AUTOENCODER_NOTE} ~10MB",
    type=ModelType.TinyAutoencoder,
    format=ModelFormat.Checkpoint,
)

# SD3 uses a 16-channel latent, architecturally identical to FLUX.1. The config probe disambiguates via the
# checkpoint's directory name (`…official_sd3_distill…`); if the HF single-file download drops that name, the
# explicit base=StableDiffusion3 override the installer sends is trusted instead (see pid_decoder.py::_validate_base).
pid_decoder_sd3_2k = StarterModel(
    source_urls=["https://huggingface.co/nvidia/PiD"],
    name="PiD Decoder SD3 (2K)",
    base=BaseModelType.StableDiffusion3,
    source="nvidia/PiD::checkpoints/PiD_res2k_sr4x_official_sd3_distill_4step/model_ema_bf16.pth",
    description="NVIDIA PiD 4x super-resolution decoder for SD3 latents, 2K target preset (e.g. 512 -> 2048). ~5GB",
    type=ModelType.PiDDecoder,
    format=ModelFormat.Checkpoint,
    variant=PiDDecoderVariantType.Res2k_Sr4x,
    dependencies=[gemma2_2b_encoder],
)

pid_decoder_sd3_2kto4k = StarterModel(
    source_urls=["https://huggingface.co/nvidia/PiD"],
    name="PiD Decoder SD3 (2K to 4K)",
    base=BaseModelType.StableDiffusion3,
    source="nvidia/PiD::checkpoints/PiD_res2kto4k_sr4x_official_sd3_distill_4step/model_ema_bf16.pth",
    description="NVIDIA PiD 4x super-resolution decoder for SD3 latents, 2K-to-4K preset for higher-resolution output. ~5GB",
    type=ModelType.PiDDecoder,
    format=ModelFormat.Checkpoint,
    variant=PiDDecoderVariantType.Res2kTo4k_Sr4x,
    dependencies=[gemma2_2b_encoder],
)

sd35_medium = StarterModel(
    source_urls=["https://huggingface.co/stabilityai/stable-diffusion-3.5-medium"],
    name="SD3.5 Medium",
    base=BaseModelType.StableDiffusion3,
    source="stabilityai/stable-diffusion-3.5-medium",
    description="Medium SD3.5 Model: ~16GB",
    type=ModelType.Main,
    dependencies=[],
)

sd35_large = StarterModel(
    source_urls=["https://huggingface.co/stabilityai/stable-diffusion-3.5-large"],
    name="SD3.5 Large",
    base=BaseModelType.StableDiffusion3,
    source="stabilityai/stable-diffusion-3.5-large",
    description="Large SD3.5 Model: ~28GB",
    type=ModelType.Main,
    dependencies=[],
)