MCPcopy
hub / github.com/clementchadebec/benchmark_VAE

github.com/clementchadebec/benchmark_VAE @v0.1.2 sqlite

repository ↗ · DeepWiki ↗ · release v0.1.2 ↗
2,989 symbols 10,615 edges 267 files 389 documented · 13%
README
<a href="https://pypi.org/project/pythae/">
    <img src='https://badge.fury.io/py/pythae.svg' alt='Python' />
</a>
<a>
    <img src='https://img.shields.io/badge/python-3.7%7C3.8%7C3.9%2B-blueviolet' alt='Python' />
</a>
<a href='https://pythae.readthedocs.io/en/latest/?badge=latest'>
    <img src='https://readthedocs.org/projects/pythae/badge/?version=latest' alt='Documentation Status' />
</a>
<a href='https://opensource.org/licenses/Apache-2.0'>
    <img src='https://img.shields.io/github/license/clementchadebec/benchmark_VAE?color=blue' />
</a>


<a>
    <img src='https://img.shields.io/badge/code%20style-black-black' />
</a>
<a href="https://codecov.io/gh/clementchadebec/benchmark_VAE">
    <img src="https://codecov.io/gh/clementchadebec/benchmark_VAE/branch/main/graph/badge.svg?token=KEM7KKISXJ"/>
</a>
<a href="https://colab.research.google.com/github/clementchadebec/benchmark_VAE/blob/main/examples/notebooks/overview_notebook.ipynb">
    <img src="https://colab.research.google.com/assets/colab-badge.svg"/>
</a>
</a>

Documentation

pythae

This library implements some of the most common (Variational) Autoencoder models under a unified implementation. In particular, it provides the possibility to perform benchmark experiments and comparisons by training the models with the same autoencoding neural network architecture. The feature make your own autoencoder allows you to train any of these models with your own data and own Encoder and Decoder neural networks. It integrates experiment monitoring tools such wandb, mlflow or comet-ml 🧪 and allows model sharing and loading from the HuggingFace Hub 🤗 in a few lines of code.

News 📢

As of v0.1.0, Pythae now supports distributed training using PyTorch's DDP. You can now train your favorite VAE faster and on larger datasets, still with a few lines of code. See our speed-up benchmark.

Quick access:

Installation

To install the latest stable release of this library run the following using pip

$ pip install pythae

To install the latest github version of this library run the following using pip

$ pip install git+https://github.com/clementchadebec/benchmark_VAE.git

or alternatively you can clone the github repo to access to tests, tutorials and scripts.

$ git clone https://github.com/clementchadebec/benchmark_VAE.git

and install the library

$ cd benchmark_VAE
$ pip install -e .

Available Models

Below is the list of the models currently implemented in the library.

Models Training example Paper Official Implementation
Autoencoder (AE) Open In Colab
Variational Autoencoder (VAE) Open In Colab link
Beta Variational Autoencoder (BetaVAE) Open In Colab link
VAE with Linear Normalizing Flows (VAE_LinNF) Open In Colab link
VAE with Inverse Autoregressive Flows (VAE_IAF) Open In Colab link link
Disentangled Beta Variational Autoencoder (DisentangledBetaVAE) Open In Colab link
Disentangling by Factorising (FactorVAE) Open In Colab link
Beta-TC-VAE (BetaTCVAE) Open In Colab link link
Importance Weighted Autoencoder (IWAE) Open In Colab link link
Multiply Importance Weighted Autoencoder (MIWAE) Open In Colab link
Partially Importance Weighted Autoencoder (PIWAE) Open In Colab link
Combination Importance Weighted Autoencoder (CIWAE) Open In Colab link
VAE with perceptual metric similarity (MSSSIM_VAE) Open In Colab link
Wasserstein Autoencoder (WAE) Open In Colab link link
Info Variational Autoencoder (INFOVAE_MMD) Open In Colab link
VAMP Autoencoder (VAMP) Open In Colab link link
Hyperspherical VAE (SVAE) Open In Colab link link
Poincaré Disk VAE (PoincareVAE) Open In Colab link link
Adversarial Autoencoder (Adversarial_AE) Open In Colab link
Variational Autoencoder GAN (VAEGAN) 🥗 Open In Colab link link
Vector Quantized VAE (VQVAE) Open In Colab link link
Hamiltonian VAE (HVAE) Open In Colab link link
Regularized AE with L2 decoder param (RAE_L2) Open In Colab link link
Regularized AE with gradient penalty (RAE_GP) Open In Colab link link
Riemannian Hamiltonian VAE (RHVAE) Open In Colab link link

See reconstruction and generation results for all aforementionned models

Available Samplers

Below is the list of the models currently implemented in the library.

| Samplers | Models | Paper | Official Implementation | |:-------------------------------------:|:-------------------:|:-------

Core symbols most depended-on inside this repo

load_from_folder
called by 342
src/pythae/models/base/base_model.py
save
called by 176
src/pythae/models/base/base_model.py
train
called by 148
src/pythae/trainers/base_trainer/base_trainer.py
mean
called by 103
src/pythae/models/pvae/pvae_utils.py
train_step
called by 67
src/pythae/trainers/base_trainer/base_trainer.py
interpolate
called by 50
src/pythae/models/base/base_model.py
sample
called by 47
src/pythae/models/pvae/pvae_utils.py
from_json_file
called by 44
src/pythae/config.py

Shape

Method 2,130
Class 548
Function 253
Route 58

Languages

Python100%

Modules by API surface

src/pythae/models/pvae/pvae_utils.py76 symbols
src/pythae/trainers/training_callbacks.py72 symbols
tests/data/custom_architectures.py65 symbols
tests/test_base_trainer.py61 symbols
tests/test_PoincareVAE.py57 symbols
tests/test_RHVAE.py56 symbols
tests/test_AE.py56 symbols
tests/test_VAEGAN.py55 symbols
tests/test_VAE_LinFlow.py54 symbols
tests/test_info_vae_mmd.py53 symbols
tests/test_VAE_IAF.py53 symbols
tests/test_VAE.py53 symbols

Dependencies from manifests, versioned

Sphinx4.1.2 · 1×
cloudpickle2.1.0 · 1×
dataclasses0.6 · 1×
matplotlib3.3.2 · 1×
numpy1.19 · 1×
pydantic2.0 · 1×
scipy1.7.1 · 1×
sphinx-rtd-theme0.5.2 · 1×
sphinxcontrib-applehelp1.0.2 · 1×
sphinxcontrib-bibtex2.3.0 · 1×
sphinxcontrib-devhelp1.0.2 · 1×
sphinxcontrib-htmlhelp2.0.0 · 1×

For agents

$ claude mcp add benchmark_VAE \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact