0Pricing
Deep Learning Academy · Lezione

Scheduler di campionamento e guidance

Guidi la generazione verso un prompt

Scheduler di campionamento e guidance è una lezione Deep Learning Academy gratuita su CoddyKit. Questa è la lezione 3 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento Deep Learning Academy, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso Deep Learning Academy include 4 lezioni in totale.

Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.

Sampling Is the Payoff

Training gives you a denoiser. Sampling is where you cash it in, running the reverse steps to turn noise into a finished image.

Steps Cost Time

Each reverse step calls the U-Net once. More steps usually means crisper results but a slower generation. ⏳

The DDPM Sampler

The original DDPM sampler is faithful but slow, often needing hundreds or even a thousand tiny denoising steps.

Faster with DDIM

DDIM skips many steps while keeping quality high, so you can sample in twenty or fifty steps instead of a thousand.

Choosing a Schedule

A sampling schedule decides which timesteps you actually visit. Fewer, well-chosen steps trade a little detail for big speed.

scheduler.set_timesteps(num_inference_steps=30)

Plain Generation Wanders

Left alone, the model produces a valid image but you cannot steer it. You get something plausible, not necessarily what you asked for.

Conditioning on a Prompt

To get control, you condition the U-Net on a prompt, often a text embedding, so it aims toward your description.

Classifier-Free Guidance

Classifier-free guidance runs the model twice, with and without the prompt, then pushes the result toward the prompted version.

The Guidance Scale

A guidance scale sets how hard to push. Higher values follow the prompt more closely but can hurt realism if overdone.

image = pipe(prompt, guidance_scale=7.5)

Finding the Sweet Spot

Too low and the image ignores you; too high and it looks harsh. A scale around seven is a common sweet spot to start from.

Two Knobs, Big Impact

Steps control speed and detail; guidance controls how closely you obey the prompt. Tuning both is how you dial in your output. 🎛️

Quick Check

What does raising the guidance scale do?

Recap

Schedules like DDIM cut steps for speed, and guidance steers toward your prompt. Tune steps and guidance scale to balance quality and control. 🎉

Domande Frequenti

La lezione «Scheduler di campionamento e guidance» è gratuita?

Sì — il testo completo di «Scheduler di campionamento e guidance» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso Deep Learning Academy, passa a CoddyKit PRO. Il corso Deep Learning Academy include 4 lezioni in totale.

Cosa imparerò in «Scheduler di campionamento e guidance»?

Guidi la generazione verso un prompt Eserciti Deep Learning Academy con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.

Ho bisogno di esperienza per iniziare Deep Learning Academy?

Non è richiesta alcuna esperienza precedente. Deep Learning Academy su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 3 di 4.

Quanto tempo richiede la lezione «Scheduler di campionamento e guidance»?

La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.

Posso scrivere ed eseguire codice in questa lezione Deep Learning Academy?

Sì. Ogni lezione Deep Learning Academy include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.

Tutte le lezioni di questo corso

  1. Aggiunta progressiva e rimozione del rumore
  2. Predire il rumore con una U-Net
  3. Scheduler di campionamento e guidance
  4. Eseguire una pipeline con Diffusers
← Torna a Deep Learning Academy