@@ -385,39 +385,29 @@ <h4>Final predicted clean images</h4>
385385< section id ="part-1-5 ">
386386< h2 > Part 1.5 – Unconditional Sampling</ h2 >
387387
388- < div class ="subsection ">
389- < h3 > Code: Sampling from Stage 1</ h3 >
390- < pre > < code > # TODO
391- # Example:
392- # stage_1_output = stage_1(
393- # prompt_embeds=prompt_embeds_null,
394- # negative_prompt_embeds=...,
395- # num_inference_steps=...,
396- # output_type="pt",
397- # ).images</ code > </ pre >
398- </ div >
388+ Starting with pure noise, we can obtain random denoise images by setting the starting index of < code > strided_timestamps</ code > to 0, and using the prompt < code > 'a high quality photo'</ code > . Below are a few examples:
399389
400390< div class ="subsection ">
401391< h3 > 5 Sampled Images</ h3 >
402392< div class ="image-row ">
403393< figure >
404- < img src ="images/part1_5_sample_1 .png " alt ="Sample 1 " />
394+ < img src ="images/ahqi/ahqi_1 .png " alt ="ahqi_1.png " />
405395< figcaption > Sample 1</ figcaption >
406396</ figure >
407397< figure >
408- < img src ="images/part1_5_sample_2 .png " alt ="Sample 2 " />
398+ < img src ="images/ahqi/ahqi_2 .png " alt ="ahqi_2.png " />
409399< figcaption > Sample 2</ figcaption >
410400</ figure >
411401< figure >
412- < img src ="images/part1_5_sample_3 .png " alt ="Sample 3 " />
402+ < img src ="images/ahqi/ahqi_3 .png " alt ="ahqi_3.png " />
413403< figcaption > Sample 3</ figcaption >
414404</ figure >
415405< figure >
416- < img src ="images/part1_5_sample_4 .png " alt ="Sample 4 " />
406+ < img src ="images/ahqi/ahqi_4 .png " alt ="ahqi_4.png " />
417407< figcaption > Sample 4</ figcaption >
418408</ figure >
419409< figure >
420- < img src ="images/part1_5_sample_5 .png " alt ="Sample 5 " />
410+ < img src ="images/ahqi/ahqi_5 .png " alt ="ahqi_5.png " />
421411< figcaption > Sample 5</ figcaption >
422412</ figure >
423413</ div >
@@ -432,34 +422,31 @@ <h2>Part 1.6 – Classifier-Free Guidance (CFG)</h2>
432422
433423< div class ="subsection ">
434424< h3 > Code: iterative_denoise_cfg</ h3 >
435- < pre > < code > # TODO
436- # def iterative_denoise_cfg(im_noisy, i_start, timesteps, prompt_embeds, uncond_prompt_embeds, scale=7, ...):
437- # # Use CFG noise estimate:
438- # # noise_est_cfg = uncond_noise_est + scale * (noise_est - uncond_noise_est)
439- # return clean_image</ code > </ pre >
425+ < pre > < code > noise_est_cfg = uncond_noise_est + scale * (noise_est - uncond_noise_est)
426+ </ code > </ pre >
440427</ div >
441428
442429< div class ="subsection ">
443430< h3 > 5 Images with Prompt "a high quality photo" (γ = 7)</ h3 >
444431< div class ="image-row ">
445432< figure >
446- < img src ="images/part1_6_cfg_1 .png " alt ="CFG sample 1 " />
433+ < img src ="images/ahqi/cfg_ahqi_1 .png " alt ="cfg_ahqi_1.png " />
447434< figcaption > CFG sample 1</ figcaption >
448435</ figure >
449436< figure >
450- < img src ="images/part1_6_cfg_2 .png " alt ="CFG sample 2 " />
437+ < img src ="images/ahqi/cfg_ahqi_2 .png " alt ="cfg_ahqi_2.png " />
451438< figcaption > CFG sample 2</ figcaption >
452439</ figure >
453440< figure >
454- < img src ="images/part1_6_cfg_3 .png " alt ="CFG sample 3 " />
441+ < img src ="images/ahqi/cfg_ahqi_3 .png " alt ="cfg_ahqi_3.png " />
455442< figcaption > CFG sample 3</ figcaption >
456443</ figure >
457444< figure >
458- < img src ="images/part1_6_cfg_4 .png " alt ="CFG sample 4 " />
445+ < img src ="images/ahqi/cfg_ahqi_4 .png " alt ="cfg_ahqi_4.png " />
459446< figcaption > CFG sample 4</ figcaption >
460447</ figure >
461448< figure >
462- < img src ="images/part1_6_cfg_5 .png " alt ="CFG sample 5 " />
449+ < img src ="images/ahqi/cfg_ahqi_5 .png " alt ="cfg_ahqi_5.png " />
463450< figcaption > CFG sample 5</ figcaption >
464451</ figure >
465452</ div >
0 commit comments