OzzyGT / krea2_preview_blocks

huggingface.co
Total runs: 24
24-hour runs: 4
7-day runs: 4
30-day runs: 4
Model's Last Updated: September 12 2026
text-to-image

Introduction of krea2_preview_blocks

Model Details of krea2_preview_blocks

Krea 2 prediction-preview modular blocks

Custom Modular Diffusers blocks that show what the model is aiming at while it denoises. A preview built from the loop's latents is noise that slowly resolves and will stay full of noise for the first half of a run. A preview built from the x0 prediction , what the model thinks the image will be judged from the current step, is a whole image from step one, which then sharpens on each step.

what the loop holds what the model is aiming at
latents preview x0 preview

Same run, same seed, 8 steps of Krea 2 Turbo.

preview_callback is called as preview_callback(step, total, image) , once per previewed step, and preview_mode chooses how much work goes into each one:

preview_mode="rgb"        16x3 linear projection of the latent channels. No weights, under 1 ms at 1024x1024
preview_mode="taew"       TAEW 2.1 tiny autoencoder. Real detail, ~21 ms at 1024x1024
preview_mode="taew_fast"  the same decoder at quarter size, ~6 ms
preview_mode="latents"    no decode; the raw prediction, for callers that decode themselves

The taew modes download the decoder weights, 22 MB, the first time they run.

The blocksets are the stock Krea 2 ones with a preview step added to the denoise loop, so with no preview_callback they generate exactly what the stock pipeline does.

Loading & running
import sdnq  # needed to load the quantized text encoder
import torch

from diffusers import ModularPipeline


pipe = ModularPipeline.from_pretrained(
    "OzzyGT/krea2_preview_blocks", trust_remote_code=True
)
pipe.load_components(dtype=torch.bfloat16)
pipe.to("cuda")


def on_preview(step, total, image):
    image.save(f"preview_{step:02d}.png")


image = pipe(
    prompt="a photograph of a cat wearing a wool hat",
    height=1024,
    width=1024,
    num_inference_steps=8,
    preview_callback=on_preview,
    preview_mode="rgb",
    output="images",
)[0]
image.save("result.png")

These blocks only work with Krea 2, Turbo or raw.

For loading a different checkpoint or swapping components, see Modular pipeline in the diffusers docs.

Previews

preview_every=N previews every Nth step; the final step is always previewed. The callback runs inside the denoising loop, so whatever it does is time the loop is not spending on the model. rgb is effectively free and the one I'd recommend; the tiny decoders cost real time on every previewed step.

Raising from the callback aborts the run: the exception propagates out of pipe(...) and the pipeline is reusable afterwards. That is the cancel button.

class Cancelled(Exception):
    pass


def on_preview(step, total, image):
    if stop_requested:
        raise Cancelled

The loop logs a traceback before re-raising, so a clean cancel still prints one.

References

Runs of OzzyGT krea2_preview_blocks on huggingface.co

24
Total runs
4
24-hour runs
4
3-day runs
4
7-day runs
4
30-day runs

More Information About krea2_preview_blocks huggingface.co Model

More krea2_preview_blocks license Visit here:

https://choosealicense.com/licenses/apache-2.0

krea2_preview_blocks huggingface.co

krea2_preview_blocks huggingface.co is an AI model on huggingface.co that provides krea2_preview_blocks's model effect (), which can be used instantly with this OzzyGT krea2_preview_blocks model. huggingface.co supports a free trial of the krea2_preview_blocks model, and also provides paid use of the krea2_preview_blocks. Support call krea2_preview_blocks model through api, including Node.js, Python, http.

krea2_preview_blocks huggingface.co Url

https://huggingface.co/OzzyGT/krea2_preview_blocks

OzzyGT krea2_preview_blocks online free

krea2_preview_blocks huggingface.co is an online trial and call api platform, which integrates krea2_preview_blocks's modeling effects, including api services, and provides a free online trial of krea2_preview_blocks, you can try krea2_preview_blocks online for free by clicking the link below.

OzzyGT krea2_preview_blocks online free url in huggingface.co:

https://huggingface.co/OzzyGT/krea2_preview_blocks

krea2_preview_blocks install

krea2_preview_blocks is an open source model from GitHub that offers a free installation service, and any user can find krea2_preview_blocks on GitHub to install. At the same time, huggingface.co provides the effect of krea2_preview_blocks install, users can directly use krea2_preview_blocks installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

krea2_preview_blocks install url in huggingface.co:

https://huggingface.co/OzzyGT/krea2_preview_blocks

Url of krea2_preview_blocks

krea2_preview_blocks huggingface.co Url

Provider of krea2_preview_blocks huggingface.co

OzzyGT
ORGANIZATIONS

Other API from OzzyGT

huggingface.co

Total runs: 112
Run Growth: -12
Growth Rate: -10.71%
Updated:March 25 2026
huggingface.co

Total runs: 8
Run Growth: -21
Growth Rate: -262.50%
Updated:March 28 2026
huggingface.co

Total runs: 3
Run Growth: -2
Growth Rate: -66.67%
Updated:February 21 2026
huggingface.co

Total runs: 1
Run Growth: 1
Growth Rate: 100.00%
Updated:November 11 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 12 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 22 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 22 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 19 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024