hussamalafandi commited on
Commit
1906935
·
verified ·
1 Parent(s): 722399a

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. LICENSE +21 -0
  2. README.md +39 -0
  3. autoencoder_mnist.pth +3 -0
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Hussam Alafandi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AutoEncoder
2
+
3
+ A simple autoencoder trained on MNIST.
4
+
5
+ This model is part of the "Introduction to Generative AI" course.
6
+ For more details, visit the [GitHub repository](https://github.com/hussamalafandi/Generative_AI).
7
+
8
+ ## Model Description
9
+
10
+ The AutoEncoder is a neural network designed to compress and reconstruct input data. It consists of an encoder that compresses the input into a latent space and a decoder that reconstructs the input from the latent representation.
11
+
12
+ ## Training Details
13
+
14
+ - **Dataset**: MNIST (handwritten digits)
15
+ - **Loss Function**: Mean Squared Error (MSE)
16
+ - **Optimizer**: Adam
17
+ - **Learning Rate**: 0.001
18
+ - **Epochs**: 40
19
+ - **Latent dim**: 10
20
+
21
+ ## Tracking
22
+
23
+ For detailed training logs and metrics, visit the [Weights & Biases run](https://wandb.ai/hussam-alafandi/mnist-autoencoder/runs/f81c7dgf?nw=nwuserhussamalafandi).
24
+
25
+ ## Load Model
26
+
27
+ ```python
28
+ from model import AutoEncoder
29
+ import torch
30
+
31
+ model = AutoEncoder()
32
+ model.load_state_dict(torch.load("model.pth"))
33
+ model.eval()
34
+ ```
35
+
36
+
37
+ ## License
38
+
39
+ This project is licensed under the MIT License. See the LICENSE file for details.
autoencoder_mnist.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ead8b660eb1ca145b7e1385919a501e36505238f111574d7d9c696ef8bf672bd
3
+ size 882898