Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

VIT-VQGAN

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

Installation

pip install vitvqgan 

Training

Train the model:

python -m vitvqgan.train_vim

You can add more options too:

python -m vitvqgan.train_vim -c imagenet_vitvq_small -lr 0.00001 -e 10

It uses Imagenette as the training dataset for demo purpose, to change it, modify dataloader init file.

Inference:

  • download checkpoints from above in mbin folder
  • Run the following command:
python -m vitvqgan.demo_recon

Checkpoints

Acknowledgements

The repo is modified from here with updates to latest dependencies and to be easily run in consumer-grade GPU for learning purpose.

Metadata

Release files for vitvqgan 0.0.1.dev1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for vitvqgan 0.0.1.dev1
File Interpreter ABI Platform Actions
vitvqgan-0.0.1.dev1-py3-none-any.whl Python 3 none any Details for vitvqgan-0.0.1.dev1-py3-none-any.whl

Release files / vitvqgan-0.0.1.dev1-py3-none-any.whl

Download URL vitvqgan-0.0.1.dev1-py3-none-any.whl
Size 1.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
86ec8a289cbbc90cefbd6b6c8cc6eab7b8d41831df82f2950ae48dd77341edfc
BLAKE2b-256 checksum
How to use checksums
f6564c5b693749692093acc7a391cc9ae8799ecb7e363aac069effc37989a835
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Security for vitvqgan 0.0.1.dev1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page