"""DWD ("Decoding Without a Decoder", arXiv 2611.22287) for Qwen-Image-2.1-Turbo: a fine-tuned copy of the transformer's last 4 blocks plus a Linear(4096 -> 768) pixel head that replaces the last sampler step and the VAE decode. Modules: pipeline DWDPipeline: text-to-image and image editing without the VAE decode model the trained tail (DWDTail) and the stock-prefix forward it reads weights tail file reading, checking and export color normalized Oklab -> sRGB, head patch layout schedule the turbo checkpoint's 8 sampler sigmas, timestep rounding encoders Qwen3-VL prompt encoder and VAE wrappers, model download """ __version__ = "0.1.0" from .color import OKLAB_MEAN, OKLAB_STD, head_to_srgb, oklab_norm_to_srgb, patchify, srgb_to_oklab_norm, to_uint8, unpatchify # noqa: E402,E501 from .model import HEAD_OUT, Cond, DWDTail # noqa: E402 from .pipeline import DEFAULT_TAIL, SIZES_1MP, SIZES_2K, DWDPipeline # noqa: E402 from .schedule import SIGMAS, model_timestep # noqa: E402 from .weights import BASE_REPO, TAIL_FILENAME, export_tail, load_tail, load_tail_file # noqa: E402 __all__ = [ "__version__", "OKLAB_MEAN", "OKLAB_STD", "head_to_srgb", "oklab_norm_to_srgb", "patchify", "srgb_to_oklab_norm", "to_uint8", "unpatchify", "HEAD_OUT", "Cond", "DWDTail", "DEFAULT_TAIL", "SIZES_1MP", "SIZES_2K", "DWDPipeline", "SIGMAS", "model_timestep", "BASE_REPO", "TAIL_FILENAME", "export_tail", "load_tail", "load_tail_file", ]