A simple implementation of an autoencoder using PyTorch.
This project aims to provide a foundational structure to understand, train, and evaluate autoencoders on 64x64 images.
- Train various autoencoder architectures: standard, convolutional, variational, and convolutional variational autoencoder on your dataset of images.
- Visualize the reconstructions of the autoencoder.
- Evaluate the model on a separate validation set.
- Checkpointing: Ability to save and resume training from checkpoints.
- Save and load trained model weights.
- Utilize custom datasets by simply pointing to your directory.
- Python 3.x
- PyTorch
- torchvision
- PIL
- matplotlib
- Clone the repository:
git clone https://github.com/renan-siqueira/autoencoder-project.git- Navigate to the project directory and install the required libraries:
cd autoencoder-project
pip install -r requirements.txt- Modify settings/settings.py to point to your training and validation dataset.
- To train the autoencoder, simply run:
python run.pyBy default, this will train a new model. If you wish to use a pre-trained model, modify the main method in run.py.