Downloads ยท 30 days
4
2% of all-time downloads
CedricPerauer/tiny-krea2-modular-pipe
tiny-krea2-modular-pipe is a text-to-image model from CedricPerauer. Use it when you need an image from a text prompt. It is set up for diffusers.
This is a modular diffusion pipeline built with ๐งจ Diffusers' modular pipeline framework.
Downloads ยท 30 days
4
2% of all-time downloads
All-time downloads
181
Public
Parameters
29K
38.2 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors26.7 MB ยท 70%
From the Hugging Face model README
This is a modular diffusion pipeline built with ๐งจ Diffusers' modular pipeline framework.
Pipeline Type: Krea2AutoBlocks
Description: Auto Modular pipeline for text-to-image generation using Krea 2: encode text -> core denoise (symmetric CFG) -> decode.
This pipeline uses a 3-block architecture that can be customized and extended.
[TODO]
This modular pipeline is composed of the following blocks:
Krea2TextEncoderStep)
guidance_scale > 0 the negative prompt is encoded the same way for CFG.Krea2CoreDenoiseStep)
Krea2DecodeStep)
Qwen3VLModel): The Qwen3-VL text encoder.AutoTokenizer): The tokenizer paired with the text encoder.Krea2Transformer2DModel)FlowMatchEulerDiscreteScheduler)AutoencoderKLQwenImage)VaeImageProcessor)is_distilled (default: False)
prompt (str): The prompt or prompts to guide image generation.Inputs:
prompt (str): The prompt or prompts to guide image generation.negative_prompt (str, optional): The negative prompt(s) for CFG.guidance_scale (float, optional, defaults to 4.5): CFG scale; the negative prompt is only encoded when this is > 0.max_sequence_length (int, optional, defaults to 512): Maximum sequence length for prompt encoding.num_images_per_prompt (int, optional, defaults to 1): The number of images to generate per prompt.latents (Tensor, optional): Pre-generated noisy latents for image generation.height (int): The height in pixels of the generated image.width (int): The width in pixels of the generated image.generator (Generator, optional): Torch generator for deterministic generation.num_inference_steps (int, optional, defaults to 28): The number of denoising steps.sigmas (list, optional): Custom sigma schedule (defaults to a linear ramp).attention_kwargs (dict, optional): Additional kwargs for attention processors.output_type (str, optional, defaults to pil): Output format: 'pil', 'np', 'pt'.Outputs:
images (list): Generated images.