Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yuanx749/vae-mixin-pytorch

Variational autoencoders as mixins.
https://github.com/yuanx749/vae-mixin-pytorch

project pytorch vae

Last synced: 5 days ago
JSON representation

Variational autoencoders as mixins.

Awesome Lists containing this project

README

        

# vae-mixin-pytorch

Variational autoencoders as mixins.

This repo contains implementation of variational autoencoder (VAE) and variants in PyTorch as mixin classes, which can be reused and composed in your customized modules.

## Usage

Check the docs [here](https://yuanx749.github.io/vae-mixin-pytorch/).

An example using simple encoder and decoder on the MNIST dataset is in [example.py](https://github.com/yuanx749/vae-mixin-pytorch/blob/main/example.py).

```{note}
Mixin is a term in object-oriented programming.
```

## Notes

Implemented VAEs:
- VAE
- beta-VAE
- InfoVAE
- DIP-VAE
- $\beta$-TCVAE
- VQ-VAE

```{note}
Losses are averaged across samples, and summed along each latent vector in a minibatch.
```