GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - renan-siqueira/autoencoder-research: A comprehensive toolkit built with PyTorch, designed to facilitate the training, evaluation, and visualization of autoencoders. From simple linear autoencoders to convolutional and variational architectures, this project offers an intuitive and expandable framework for anyone delving into the realm of unsupervised learning.

BranchesTags
Open more actions menu

Latest commit

 

History

64 Commits
64 Commits

Folders and files

NameName
Last commit message
Last commit date
json
json
 
 
models
models
 
 
settings
settings
 
 
utils
utils
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
copy_randomic_files.py
copy_randomic_files.py
 
 
requirements.txt
requirements.txt
 
 
reset_dataset.py
reset_dataset.py
 
 
run.py
run.py
 
 

Repository files navigation

Autoencoder Project

A simple implementation of an autoencoder using PyTorch.

This project aims to provide a basic framework for understanding, training, and evaluating autoencoders on any image size.

Features

  • 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.
  • Test all available autoencoder architectures with a single command.
  • Easily containerize and run using Docker.

Getting Started

Prerequisites

  • Python 3.x
  • PyTorch
  • torchvision
  • PIL
  • matplotlib
  • NVIDIA CUDA-compatible GPU (if you're using the GPU-support Docker setup)
  • Docker (if you want to containerize the application)

Installation

Traditional Setup:

  1. Clone the repository.
  2. Navigate to the project directory and install the required libraries.

Using Docker:

  1. Clone the repository.
  2. Navigate to the project directory.
  3. Build the Docker image:
docker build -t autoencoder_research .
  1. Run the container:
docker run --gpus all -it --rm -v $(pwd):/app autoencoder_research bash

Note: If you're using the Docker method, you'll be inside the container's shell after running the above command. You can execute Python scripts or any other commands just like you would on your local machine.

Usage

  1. Modify the settings/settings.py file to point to your training and validation dataset.
  2. Modify the json/params.json file to reflect your training preferences.

Training

To train the autoencoder as per your configurations, simply run:

python3 run.py

Testing

To run a test routine for all the available autoencoder architectures, use:

python3 run.py --test

This will train each autoencoder for a few epochs and provide an overview of their performances.

Common Issues and Solutions

Issue: Docker Volume and Uppercase Paths on Windows

Description: On Windows, when trying to mount a local volume in Docker, an error might arise if the path contains uppercase letters. This is due to Docker expecting repository names (or paths) to be in lowercase.

Solution: Convert the current directory path to lowercase and replace backslashes with regular slashes. If you're using Git Bash or a similar terminal on Windows, follow the steps below:

  1. Get the full path of the current directory in Windows format:
win_path=$(pwd -W)
  1. Convert the path to lowercase and replace backslashes with regular slashes:
lowercase_path=$(echo $win_path | tr '[:upper:]' '[:lower:]' | sed 's|\\|/|g')
  1. Use this path in your Docker command:
docker run --gpus all -it --rm -v "/$lowercase_path":/app autoencoder_research bash

About

A comprehensive toolkit built with PyTorch, designed to facilitate the training, evaluation, and visualization of autoencoders. From simple linear autoencoders to convolutional and variational architectures, this project offers an intuitive and expandable framework for anyone delving into the realm of unsupervised learning.

Topics

autoencodercomputer-visioncontainerconvolutional-neural-networkdata-augmentationdeep-learningdimensionality-reductiondockerdockerfileimage-processingimage-reconstructionmachine-learningmodel-checkpointneural-networkspythonpytorchunsupervised-learningvariational-autoencodervirtualization

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.