Skip to content

Commit

Permalink
adjust format
Browse files Browse the repository at this point in the history
  • Loading branch information
JaxonZeng committed Dec 18, 2024
1 parent 6bc1480 commit fd37474
Show file tree
Hide file tree
Showing 22 changed files with 68 additions and 1 deletion.
Binary file modified proj6/.DS_Store
Binary file not shown.
Empty file removed proj6/.DS_StoreZone.Identifier
Empty file.
Binary file added proj6/cat/.DS_Store
Binary file not shown.
Binary file added proj6/cat/7-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/cat/7-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/cat/8-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/cat/8-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/cat/8-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/cat/8-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/cat/8-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/cat/8-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/cat/cat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/imagesa/7-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/imagesa/7-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/imagesa/8-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/imagesa/8-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/imagesa/8-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/imagesa/8-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/imagesa/8-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/imagesa/8-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added proj6/imagesa/cat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 68 additions & 1 deletion proj6/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h3 align="middle">Introduction</h3>
$$
where:</p>
<ul>
<li>$ \mathbf{p} $: Input 2D pixel position, normalized to $0, 1]\$or $-1, 1]$.</li>
<li>$ \mathbf{p} $: Input 2D pixel position.</li>
<li>$ \mathbf{c} $: Output color at that position.</li>
<li>$ f_\theta $: Neural network parameterized by weights $\theta $</li>
</ul>
Expand Down Expand Up @@ -242,6 +242,73 @@ <h3 align="middle">Fox</h3>
</table>
</div>
<br><br>

<h3 align="middle">Cat</h3>
I also choose the image from the cute cat Hujiao as input for training the Mlp.
<div align="middle">
<table style="width=100%">
<tr>
<td align="middle">
<img src="imagesa/cat.jpg" align="middle" width="300px" />
<figcaption align="middle">Cat Original Image</figcaption>
</td>
</tr>
</table>
</div>
<br><br>

I train my model with $L=10$ and hidden dimension of $512$ for $5000$ iterations and batch size of $5000$. My
learning rate is $1e-3$. The model reach a PSNR of $26.33$.


<div align="middle">
<table style="width=100%">
<tr>
<td align="middle">
<img src="imagesa/7-1.png" align="middle" width="500px" />
<figcaption align="middle">MSE Loss</figcaption>
</td>
<td align="middle">
<img src="imagesa/7-2.png" align="middle" width="500px" />
<figcaption align="middle">PSNR</figcaption>
</td>
</tr>
</table>
</div>
<div align="middle">
<table style="width=100%">
<tr>
<td align="middle">
<img src="imagesa/8-1.png" align="middle" width="300px" />
<figcaption align="middle">Predicted Image iteration 1</figcaption>
</td>
<td align="middle">
<img src="imagesa/8-2.png" align="middle" width="300px" />
<figcaption align="middle">Predicted Image iteration 1000</figcaption>
</td>
<td align="middle">
<img src="imagesa/8-3.png" align="middle" width="300px" />
<figcaption align="middle">Predicted Image iteration 2000</figcaption>
</td>
</tr>

<tr>
<td align="middle">
<img src="imagesa/8-4.png" align="middle" width="300px" />
<figcaption align="middle">Predicted Image iteration 3000</figcaption>
</td>
<td align="middle">
<img src="imagesa/8-5.png" align="middle" width="300px" />
<figcaption align="middle">Predicted Image iteration 4000</figcaption>
</td>
<td align="middle">
<img src="imagesa/8-6.png" align="middle" width="300px" />
<figcaption align="middle">Predicted Image iteration 5000</figcaption>
</td>
</tr>
</table>
</div>
<br><br>
<h4 align="middle">Hyperparameter Tunning</h4>
My first try for hyperparameter tunning is changing the hidden layers to $512$. It slightly increase the PSNR to
$27.48$, which means a higher quality in reconstructing the image.
Expand Down

0 comments on commit fd37474

Please sign in to comment.