Downloads · 30 days
3
23% of all-time downloads
YiYiXu/FLUX.2-klein-4B-modular
FLUX.2-klein-4B-modular is a image-to-image model from YiYiXu. Use it when you need one image transformed into another. It is set up for diffusers.
This is a modular diffusion pipeline built with 🧨 Diffusers' modular pipeline framework.
Downloads · 30 days
3
23% of all-time downloads
All-time downloads
13
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md3.8 KB · 45%
From the Hugging Face model README
This is a modular diffusion pipeline built with 🧨 Diffusers' modular pipeline framework.
Pipeline Type: Flux2KleinAutoBlocks
Description: Auto blocks that perform the text-to-image and image-conditioned generation using Flux2-Klein.
image (list of PIL images).prompt.This pipeline uses a 4-block architecture that can be customized and extended.
[TODO]
This modular pipeline is composed of the following blocks:
Flux2KleinTextEncoderStep)
Flux2KleinAutoVaeEncoderStep)
Flux2KleinVaeEncoderSequentialStep
Flux2KleinCoreDenoiseStep)
Flux2TextInputStep
Flux2PrepareImageLatentsStep
Flux2PrepareLatentsStep
Flux2SetTimestepsStep
Flux2RoPEInputsStep
Flux2KleinDenoiseStep
Flux2UnpackLatentsStep
Flux2DecodeStep)
This pipeline contains blocks that are selected at runtime based on inputs:
imageQwen3ForCausalLM)Qwen2Tokenizer)Flux2ImageProcessor)AutoencoderKLFlux2)FlowMatchEulerDiscreteScheduler)Flux2Transformer2DModel)is_distilled (default: True)
prompt (Any): No description providedmax_sequence_length (int), default: 512: No description providedtext_encoder_out_layers (Tuple), default: (9, 18, 27): No description providedimage (Any): No description providedheight (Any): No description providedwidth (Any): No description providedgenerator (Any): No description providednum_images_per_prompt (Any), default: 1: No description providedimage_latents (List): No description providedlatents (Optional): No description providednum_inference_steps (Any), default: 50: No description providedtimesteps (Any): No description providedsigmas (Any): No description providedjoint_attention_kwargs (Any): No description providedoutput_type (Any), default: pil: No description providedimages (List): The images from the decoding step.