Upload files to ''

This commit is contained in:
Linus Nwankwo 2023-10-09 10:02:01 +00:00
parent 8d40e774df
commit 56123b126b
5 changed files with 2976 additions and 0 deletions

23
README.md Normal file
View File

@ -0,0 +1,23 @@
This is the coding part of the lecture Deep Representation Learning in PyTorch.
python 3.10
#### Autoencoder
In this demo we will implement a simple autoencoder. The autoencoder will be trained on the MNIST dataset. The autoencoder will be implemented in the file autoencoder.py. The file autoencoder.py contains a class Autoencoder on the MNIST dataset.
We compare the performance of the fully connected autoencoder with a convolutional autoencoder.
Jupyter notebooks:
* autoencoder_mnist.ipynb
* autoencoder_cifar10.ipynb
#### Contractive Learning (SimCLR)
In this demo we implemented the SimClR [1] algorithm and trained it on the cifar10 dataset.
Download the pretrained encoder [here](https://cloud.cps.unileoben.ac.at/index.php/s/feHYqRHwDy7mMDm) and put it in the folder `runs`.
The code was adapted from this [repo](https://github.com/sthalles/SimCLR/tree/master)
Jupyter notebooks:
* simclr.ipynb
[1] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. 2020. A simple framework for contrastive learning of visual representations. In Proceedings of the 37th International Conference on Machine Learning (ICML'20), Vol. 119. JMLR.org, Article 149, 15971607.

1622
autoencoder_cifar10.ipynb Normal file

File diff suppressed because one or more lines are too long

1135
autoencoder_mnist.ipynb Normal file

File diff suppressed because one or more lines are too long

195
conv_animation.ipynb Normal file

File diff suppressed because one or more lines are too long

1
evaluation_results.log Normal file
View File

@ -0,0 +1 @@
reconstruction_loss: 0.001255071537196636linear_classification_accuracy: 0.3665knn_classification_accuracy: 0.3889clustering_ari_score: 0.02700985553219709