Coder Social home page Coder Social logo

duchenzhuang / enhancing-transformers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thuanz123/enhancing-transformers

0.0 0.0 0.0 1.96 MB

An unofficial implementation of both ViT-VQGAN and RQ-VAE in Pytorch

License: MIT License

C++ 1.49% Python 90.30% Cuda 8.21%

enhancing-transformers's Introduction

Table of Contents
  1. About The Project
  2. Getting Started
  3. Roadmap
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgments

News

09/09

  1. The release weight of ViT-VQGAN small which is trained on ImageNet at here

16/08

  1. First release weight of ViT-VQGAN base which is trained on ImageNet at here
  2. Add an colab notebook at here

About The Project

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

Getting Started

For the ease of installation, you should use anaconda to setup this repo.

Installation

A suitable conda environment named enhancing can be created and activated with:

conda env create -f environment.yaml
conda activate enhancing

Training

Training is easy with one line: python3 main.py -c config_name -lr learning_rate -e epoch_nums

Roadmap

  • Add ViT-VQGAN
    • Add ViT-based encoder and decoder
    • Add factorized codes
    • Add l2-normalized codes
    • Replace PatchGAN discriminator with StyleGAN one
  • Add RQ-VAE
    • Add Residual Quantizer
    • Add RQ-Transformer
  • Add dataloader for some common dataset
    • ImageNet
    • LSUN
    • COCO
      • Add COCO Segmentation
      • Add COCO Caption
    • CC3M
  • Add pretrained models
    • ViT-VQGAN small
    • ViT-VQGAN base
    • ViT-VQGAN large

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Source code and pretrained weights are distributed under the MIT License. See LICENSE for more information.

Contact

Thuan H. Nguyen - @leejohnthuan - [email protected]

Acknowledgements

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:

enhancing-transformers's People

Contributors

thuangb avatar thuanz123 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.