Sterowanie promptem bez klasyfikatora (classifier-free guidance)

Classifier-free guidance · id cfg · aliases: classifier-free guidance, CFG, guidance scale, negative prompt, sterowanie generacją

Technika wzmacniania zgodności wyniku z opisem: jeden model uczy się generować z warunkiem i bez niego (warunek losowo pomijany w treningu), a przy generowaniu wynik przesuwa się w stronę wersji warunkowej. Skala guidance to popularny suwak „wierność promptowi kontra różnorodność”.

A technique to strengthen adherence to the prompt: one model learns to generate with and without the condition (dropped randomly in training), and at sampling time the output is pushed toward the conditional version. The guidance scale is the familiar “prompt fidelity vs diversity” knob.

In one sentence

To wzmacnianie wpływu twojego opisu na obraz tworzony przez model.

This strengthens the influence of your description on the image a model generates.

Problem it solves

Generator tworzy ładny obraz, ale pomija ważne szczegóły wskazane w opisie.

A generator creates an attractive image but misses important details from your description.

What it does

Porównuje przewidywanie z opisem i bez niego, wzmacniając różnicę; zbyt mocne sterowanie może pogorszyć wygląd lub różnorodność.

It compares predictions with and without the description, amplifying the difference; excessive guidance can harm appearance or diversity.

Everyday example

Zwiększasz siłę opisu czerwonego parasola, a potem sprawdzasz, czy obraz zachował naturalne kolory i szczegóły.

You increase guidance for a red umbrella description, then check whether the image retains natural colours and details.

This concerns you if you…

Examples

Related topics

Sources