You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To improve the quality of the images, we can compute both a noise estiamte conditioned on the text prompt, and the unconditional noise estimate, based on the null prompt <code>''</code>. Denoting the conditional noise estimate as ε<sub>c</sub> and the unconditional noise estimate as ε<sub>u</sub>, we let our noise estimate be ε = ε<sub>u</sub> + γ(ε<sub>c</sub> - ε<sub>u</sub>). Note that we have ε = ε<sub>u</sub> and ε = ε<sub>c</sub> for γ = 0 and γ = 1 respectively. However, when γ > 1, we can get much higher equality images for reasons still dicussed today. This technique is known as <strong>classifier-free guidance</strong>, and we can calculate the noise estimate as follows:
425
+
To improve the quality of the images, we can compute both a noise estimate conditioned on the text prompt and the unconditional noise estimate based on the null prompt <code>''</code>. Denoting the conditional noise estimate as ε<sub>c</sub> and the unconditional noise estimate as ε<sub>u</sub>, we let our noise estimate be ε = ε<sub>u</sub> + γ(ε<sub>c</sub> - ε<sub>u</sub>). Note that we have ε = ε<sub>u</sub> and ε = ε<sub>c</sub> for γ = 0 and γ = 1 respectively. However, when γ > 1, we can get much higher equality images for reasons still discussed today. This technique is known as <strong>classifier-free guidance</strong>, and we can calculate the noise estimate as follows:
Similar to how we added noise to an existing image before denoising the result in part 1.4, we can use the <code>iterative_denoise_cfg</code> function to get a result that is of higher quality, as opposed to merely a prediction of the original. By adjusting the starting amount of noise to the Campanile with the timestamp index <code>i_start</code>, where a higher index means less noise, we get a series of edits to the that gradually go from entirely new to resembling the original image:
464
+
Similar to how we added noise to an existing image before denoising the result in part 1.4, we can use the <code>iterative_denoise_cfg</code> function to get a result that is of higher quality, as opposed to merely a prediction of the original. By adjusting the starting amount of noise to the Campanile with the timestamp index <code>i_start</code>, where a higher index means less noise, we get a series of edits that gradually go from entirely new to resembling the original image:
Finally, we can also change our conditional prompt, namely <code>'a high quality photo'</code>, to any other. This will give control to what the noise is projected to, resulting in a series of images that look more like the original image, but also similar to the conditional prompt.
729
+
Finally, we can also change our conditional prompt, namely <code>'a high quality photo'</code>, to any other. This will give control over what the noise is projected to, resulting in a series of images that look more like the original image, but also similar to the conditional prompt.
730
730
731
731
<divclass="subsection">
732
732
<h4>Campanile with prompt <code>'a pencil'</code></h4>
0 commit comments