A toolkit for flexibly building convolutional autoencoders in pytorch
Project description
Introduction
This repository contains the tools necessary to flexibly build an autoencoder in pytorch. In the future some more investigative tools may be added. The main goal of this toolkit is to enable quick and flexible experimentation with convolutional autoencoders of a variety of architectures.
The implementation is such that the architecture of the autoencoder can be altered by passing different arguments. Tunable aspects are:
- number of layers
- number of residual blocks at each layer of the autoencoder
- functions used for downsampling and upsampling convolutions and convolutions in the residual blocks
- number of channels at each layer of the autoencoder
- activation function performed after each convolution
- symmetry (or lack thereof) of the encoder-decoder architecture
- etc
Some usefull wrappers and custom classes, such as ResidualBlock or GeneralConvolution, can be found in model_parts.py. The file models.py is where the actual autoencoder classes are. It contains one base class as well as two extension for 2d and 3d data.
Installation
The latest stable version can be obtained using pip install autoencoder
.
Otherwise, you can download and use the files directly in your projects.
Usage
The ConvAE base class expects parameters that specify the overall architecture (see documentation) and one function for the downsampling layer, upsampling layer and residual block. Conv2dAE and Conv3dAE on the other hand provide an interface to easily create the aforementioned functions from parameters and create the autoencoder from there.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file autoencoder-0.0.8.tar.gz
.
File metadata
- Download URL: autoencoder-0.0.8.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200119 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc1591238160fa1d35deff49ace284eb1ae0f12051b727fcc4cc2ade75c41147 |
|
MD5 | e0bec884cf22b016d513d667c774271f |
|
BLAKE2b-256 | f928d11c86d7e9afbbfe4f0bc1a349272a51ec5c782ff12174a2d982e09ca494 |
File details
Details for the file autoencoder-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: autoencoder-0.0.8-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200119 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecb644d3d18c97bf8157863e5c585f940c9bc1a0ccf96fa0cff01d6a2f608858 |
|
MD5 | fb0b6d97d203cbdb647606a80dd8aaf5 |
|
BLAKE2b-256 | 4662fd4471bbb6cacfe4c20becd0c66b23c364be2074e9830641bec9e9ee68a0 |