← 开源
AntixK

PyTorch-VAE

A Collection of Variational Autoencoders (VAE) in PyTorch.

Model DevelopmentArchitecturePython
在 GitHub 打开
增长势头
+124 小时新增 Star+0.0%
7.68k
Star
1.18k
Fork
+2
本周
1
贡献者
创建于 2020-01-10 · 更新于 2026-10-16 · 今日第 4480 名
主要开发者

AntixK/PyTorch-VAE 排名第 4,480,有 7,679 个星标。

同类别比较

AntixK/PyTorch-VAE 排名第 4,480,此处有 8 个同类条目;Morizeyao/GPT2-Chinese 排名第 4,482。

同类别比较
名称排名指标
OpenDCAI/DataFlow4,467
语言:
Python
星标数:
8,209
分叉数:
1,196
简介:
[SIGMOD'27] Easy Data Preparation with latest LLMs-based Operators and Pipelines.
harthur/brain4,471
语言:
JavaScript
星标数:
7,984
分叉数:
842
简介:
Simple feed-forward neural network in JavaScript
MaartenGr/BERTopic4,474
语言:
Python
星标数:
7,893
分叉数:
929
简介:
Leveraging BERT and c-TF-IDF to create easily interpretable topics.
lucidrains/PaLM-rlhf-pytorch4,475
语言:
Python
星标数:
7,861
分叉数:
670
简介:
Implementation of RLHF (Reinforcement Learning with Human Feedback) on top of the PaLM architecture. Basically ChatGPT but with PaLM
Morizeyao/GPT2-Chinese4,482
语言:
Python
星标数:
7,600
分叉数:
1,673
简介:
Chinese version of GPT2 training code, using BERT tokenizer.
facebookresearch/SlowFast4,490
语言:
Python
星标数:
7,433
分叉数:
1,296
简介:
PySlowFast: video understanding codebase from FAIR for reproducing state-of-the-art video models.
MineDojo/Voyager4,495
语言:
JavaScript
星标数:
7,265
分叉数:
708
简介:
An Open-Ended Embodied Agent with Large Language Models
flwrlabs/flower4,498
语言:
Python
星标数:
7,165
分叉数:
1,235
简介:
Flower: A Friendly Federated AI Framework
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Architecture
星标数7,679
分叉数1,181
贡献者1
创建日期2020-01-10
更新日期2026-10-16
1 天星标数1
7 天星标数2
排名4,480
上次排名4,670
排名变化190
7 天星标排名7,508
上次 7 天星标排名11,739
7 天星标排名变化4,231
总星标排名1,864
上次总星标排名1,861
总星标排名变化-3
国家Japan
README 摘录

PyTorch VAE **Update 22/12/2021:** Added support for PyTorch Lightning 1. A collection of Variational AutoEncoders (VAEs) implemented in pytorch with focus on reproducibility. The aim of this project is to provide a quick and simple working example for many of the cool VAE models out there. All the models are trained on the CelebA dataset for consistency and comparison. The architecture of all the models are kept as similar as possible with the same layers, except for cases

where the original paper necessitates a radically different architecture (Ex. VQ VAE uses Residual layers and no Batch-Norm, unlike other models). 0 (GitHub Repo) CUDA enabled computing device Installation Usage **Config file template** **View TensorBoard Logs** **Note:** The default dataset is CelebA. However, there has been many issues with downloading the dataset from google drive (owing to some file structure changes). So, the recommendation is to download the file from google drive directly and extract to the path of

your choice. The default path assumed in the config files is @misc{Subramanian2020, author = {Subramanian, A.

常见问题

记录了多少星标和分叉?

AntixK/PyTorch-VAE 有 7,679 个星标和 1,181 个分叉。

仓库排名是多少?

AntixK/PyTorch-VAE 排名第 4,480。

记录的语言和类别是什么?

AntixK/PyTorch-VAE 有 7,679 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

AntixK/PyTorch-VAE 与 Morizeyao/GPT2-Chinese 比较,后者排名第 4,482,有 7,600 个星标。

README

PyTorch VAE

  [![](https://img.shields.io/badge/Python-3.5-ff69b4.svg)](https://www.python.org/)
   [![](https://img.shields.io/badge/PyTorch-1.3-2BAF2B.svg)](https://pytorch.org/)
   [![](https://img.shields.io/badge/license-Apache2.0-blue.svg)](https://github.com/AntixK/PyTorch-VAE/blob/master/LICENSE.md)
     [![](https://img.shields.io/twitter/url/https/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=PyTorch-VAE:%20Collection%20of%20VAE%20models%20in%20PyTorch.&url=https://github.com/AntixK/PyTorch-VAE)

Update 22/12/2021: Added support for PyTorch Lightning 1.5.6 version and cleaned up the code.

A collection of Variational AutoEncoders (VAEs) implemented in pytorch with focus on reproducibility. The aim of this project is to provide a quick and simple working example for many of the cool VAE models out there. All the models are trained on the CelebA dataset for consistency and comparison. The architecture of all the models are kept as similar as possible with the same layers, except for cases where the original paper necessitates a radically different architecture (Ex. VQ VAE uses Residual layers and no Batch-Norm, unlike other models). Here are the results of each model.

Requirements

  • Python >= 3.5
  • PyTorch >= 1.3
  • Pytorch Lightning >= 0.6.0 (GitHub Repo)
  • CUDA enabled computing device

Installation

$ git clone https://github.com/AntixK/PyTorch-VAE
$ cd PyTorch-VAE
$ pip install -r requirements.txt

Usage

$ cd PyTorch-VAE
$ python run.py -c configs/

Config file template

model_params:
  name: ""
  in_channels: 3
  latent_dim: 
    .         # Other parameters required by the model
    .
    .

data_params:
  data_path: ""
  train_batch_size: 64 # Better to have a square number
  val_batch_size:  64
  patch_size: 64  # Models are designed to work for this size
  num_workers: 4
  
exp_params:
  manual_seed: 1265
  LR: 0.005
  weight_decay:
    .         # Other arguments required for training, like scheduler etc.
    .
    .

trainer_params:
  gpus: 1         
  max_epochs: 100
  gradient_clip_val: 1.5
    .
    .
    .

logging_params:
  save_dir: "logs/"
  name: ""

View TensorBoard Logs

$ cd logs//version_
$ tensorboard --logdir .

Note: The default dataset is CelebA. However, there has been many issues with downloading the dataset from google drive (owing to some file structure changes). So, the recommendation is to download the file from google drive directly and extract to the path of your choice. The default path assumed in the config files is `Data/celeba/img_align_celeba'. But you can change it acording to your preference.


Results

Model Paper Reconstruction Samples
VAE (Code, Config) Link
Conditional VAE (Code, Config) Link
WAE - MMD (RBF Kernel) (Code, Config) Link
WAE - MMD (IMQ Kernel) (Code, Config) Link
Beta-VAE (Code, Config) Link
Disentangled Beta-VAE (Code, Config) Link
Beta-TC-VAE (Code, Config) Link
IWAE (K = 5) (Code, Config) Link
MIWAE (K = 5, M = 3) (Code, Config) Link
DFCVAE (Code, Config) Link
MSSIM VAE (Code, Config) Link
Categorical VAE (Code, Config) Link
Joint VAE (Code, Config) Link
Info VAE (Code, Config) Link
LogCosh VAE (Code, Config) Link
SWAE (200 Projections) (Code, Config) Link
VQ-VAE (K = 512, D = 64) (Code, Config) Link N/A
DIP VAE (Code, Config) Link

Contributing

If you have trained a better model, using these implementations, by fine-tuning the hyper-params in the config file, I would be happy to include your result (along with your config file) in this repo, citing your name 😊.

Additionally, if you would like to contribute some models, please submit a PR.

License

Apache License 2.0

Permissions Limitations Conditions
✔️ Commercial use ❌ Trademark use ⓘ License and copyright notice
✔️ Modification ❌ Liability ⓘ State changes
✔️ Distribution ❌ Warranty
✔️ Patent use
✔️ Private use

Citation

@misc{Subramanian2020,
  author = {Subramanian, A.K},
  title = {PyTorch-VAE},
  year = {2020},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/AntixK/PyTorch-VAE}}
}

排名相邻
同类项目