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.

362 B
Raw Blame
from typing import Any


def is_state_dict_likely_flux_redux(state_dict: dict[str | int, Any]) -> bool:
    """Checks if the provided state dict is likely a FLUX Redux model."""

    expected_keys = {"redux_down.bias", "redux_down.weight", "redux_up.bias", "redux_up.weight"}
    if set(state_dict.keys()) == expected_keys:
        return True

    return False