Skip to content

Commit 770907e

Browse files
authored
Update project title and align image sections
1 parent 4fc8f57 commit 770907e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

project-5/index.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<title>Project 5: Fun with Diffusion Models</title>
5+
<title>CS180 Project 5</title>
66
<style>
77
body {
88
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
@@ -150,14 +150,14 @@ <h3>Images generated with num_inference_steps=100</h3>
150150
<h2>Part 1.1 – The forward process</h2>
151151

152152
To start, we have the original Campanile image at 64px:
153-
<div class="image-row">
153+
<div align="center">
154154
<figure>
155155
<img src="images/campanile.png" alt="campanile.png" />
156156
</figure>
157157
</div>
158158

159159
To add noise to an image <code>x<sub>0</sub></code>, we can use the forward process and compute
160-
<div class="image-row">
160+
<div align="center">
161161
<figure>
162162
<img src="images/forward.png" alt="forward.png" />
163163
</figure>
@@ -310,7 +310,7 @@ <h2>Part 1.4 – Iterative Denoising</h2>
310310

311311
Instead of using one step, we can obtain better results by iteratively denoising from step <code>t</code> until step 0. However, this means running the diffusion model 1000 times in the worst case, which is slow and costly. Fortunately, we can speed up the computation by first defining a series of strided timestamps, starting at close to 1000 and ending at 0. For the examples below, we will use <code>strided_timestamps = [990, 960, ..., 30, 0]</code>. Then, we can use the formula
312312

313-
<div class="image-row">
313+
<div align="center">
314314
<figure>
315315
<img src="images/equation.png" alt="equation.png" />
316316
</figure>
@@ -887,15 +887,19 @@ <h2>Part 1.9 – Hybrid Images</h2>
887887
<br>After doing so, we will add the 2 filtered noises together to get the final noise estimate at each step. This will produce an image that, when viewed close up, shows <code>p<sub>1</sub></code>, but when viewed far away, shows <code>p<sub>2</sub></code>. Unlike the anagram images, we don't need to flip or transform the image to be denoised, as both images should be viewed under the same orientation. Below are several examples:
888888

889889
<div class="subsection">
890-
<div class="image-row">
890+
<div align="center">
891891
<figure>
892892
<img src="images/hybrid/hybrid1_256.png" alt="hybrid1_256.png" />
893893
<figcaption>Prompts: <code>'a lithograph of a skull'</code> (low-pass) & <code>'a lithograph of waterfalls'</code> (high-pass)</figcaption>
894894
</figure>
895+
</div>
896+
<div align="center">
895897
<figure>
896898
<img src="images/hybrid/hybrid2_256.png" alt="hybrid2_256.png" />
897899
<figcaption>Prompts: <code>'a pencil'</code> (low-pass) & <code>'a rocket ship'</code> (high-pass)</figcaption>
898900
</figure>
901+
</div>
902+
<div align="center">
899903
<figure>
900904
<img src="images/hybrid/hybrid3_256.png" alt="hybrid3_256.png" />
901905
<figcaption>Prompts: <code>'a lithograph of waterfalls'</code> (low-pass) & <code>'a photo of a dog'</code> (high-pass)</figcaption>

0 commit comments

Comments
 (0)