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.

934 B
Raw Blame
"""Dynamic Position Extrapolation (DyPE) for FLUX models.

DyPE enables high-resolution image generation with pretrained FLUX models by
dynamically modulating RoPE extrapolation during denoising.

Based on the official DyPE project: https://github.com/guyyariv/DyPE
"""

from invokeai.backend.flux.dype.base import DyPEConfig
from invokeai.backend.flux.dype.embed import DyPEEmbedND
from invokeai.backend.flux.dype.presets import (
    DYPE_PRESET_4K,
    DYPE_PRESET_AREA,
    DYPE_PRESET_AUTO,
    DYPE_PRESET_LABELS,
    DYPE_PRESET_MANUAL,
    DYPE_PRESET_OFF,
    DyPEPreset,
    get_dype_config_for_area,
    get_dype_config_for_resolution,
)

__all__ = [
    "DyPEConfig",
    "DyPEEmbedND",
    "DyPEPreset",
    "DYPE_PRESET_OFF",
    "DYPE_PRESET_MANUAL",
    "DYPE_PRESET_AUTO",
    "DYPE_PRESET_AREA",
    "DYPE_PRESET_4K",
    "DYPE_PRESET_LABELS",
    "get_dype_config_for_area",
    "get_dype_config_for_resolution",
]