0Pricing
Deep Learning Academy · レッスン

サンプリングスケジュールとGuidance

プロンプトに沿うよう生成を誘導します

「サンプリングスケジュールとGuidance」はCoddyKit上の無料Deep Learning Academyレッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはDeep Learning Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Deep Learning Academyコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

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. 🎉

よくある質問

「サンプリングスケジュールとGuidance」レッスンは無料ですか?

はい。「サンプリングスケジュールとGuidance」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Deep Learning Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Deep Learning Academyコースには全4レッスンが含まれています。

「サンプリングスケジュールとGuidance」で何を学びますか?

プロンプトに沿うよう生成を誘導します ブラウザで直接実行するハンズオンコードでDeep Learning Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

Deep Learning Academyを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのDeep Learning Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。

「サンプリングスケジュールとGuidance」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このDeep Learning Academyレッスンでコードを書いて実行できますか?

はい。すべてのDeep Learning Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. 順方向のノイズ付加と逆方向のノイズ除去
  2. U-Netでノイズを予測する
  3. サンプリングスケジュールとGuidance
  4. Diffusersでパイプラインを実行する
← Deep Learning Academyに戻る