An unofficial implementation of both ViT-VQGAN and RQ-VAE in Pytorch
Python
325
162 commits
updated Apr 7, 2025
09/09
16/08
This is an unofficial implementation of both ViT-VQGAN and RQ-VAE in Pytorch. ViT-VQGAN is a simple ViT-based Vector Quantized AutoEncoder while RQ-VAE introduces a new residual quantization scheme. Further details can be viewed in the papers
For the ease of installation, you should use anaconda to setup this repo.
A suitable conda environment named enhancing can be created and activated with:
conda env create -f environment.yaml
conda activate enhancing
Training is easy with one line:
python3 main.py -c config_name -lr learning_rate -e epoch_nums
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Source code and pretrained weights are distributed under the MIT License. See LICENSE for more information.
Thuan H. Nguyen - @leejohnthuan - leejohnthuan@gmail.com
This project would not be possible without the generous sponsorship from Stability AI and helpful discussion of folks in LAION discord
This repo is heavily inspired by following repos and papers:
Python
90.3%
Cuda
8.2%
C++
1.5%
An unofficial implementation of both ViT-VQGAN and RQ-VAE in Pytorch
Python
325
162 commits
updated Apr 7, 2025
09/09
16/08
This is an unofficial implementation of both ViT-VQGAN and RQ-VAE in Pytorch. ViT-VQGAN is a simple ViT-based Vector Quantized AutoEncoder while RQ-VAE introduces a new residual quantization scheme. Further details can be viewed in the papers
For the ease of installation, you should use anaconda to setup this repo.
A suitable conda environment named enhancing can be created and activated with:
conda env create -f environment.yaml
conda activate enhancing
Training is easy with one line:
python3 main.py -c config_name -lr learning_rate -e epoch_nums
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Source code and pretrained weights are distributed under the MIT License. See LICENSE for more information.
Thuan H. Nguyen - @leejohnthuan - leejohnthuan@gmail.com
This project would not be possible without the generous sponsorship from Stability AI and helpful discussion of folks in LAION discord
This repo is heavily inspired by following repos and papers:
Python
90.3%
Cuda
8.2%
C++
1.5%