Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
BAAI-WuDao 56bcadb12f | 3 years ago | |
---|---|---|
.. | ||
distributed | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
__init__.py | 3 years ago | |
api.py | 3 years ago | |
vqvae_zc.py | 3 years ago |
Implementation of Generating Diverse High-Fidelity Images with VQ-VAE-2 in PyTorch
train_vqvae.py and vqvae.py now supports distributed training. You can use --n_gpu [NUM_GPUS] arguments for train_vqvae.py to use [NUM_GPUS] during training.
Checkpoint of VQ-VAE pretrained on FFHQ
Currently supports 256px (top/bottom hierarchical prior)
python train_vqvae.py [DATASET PATH]
If you use FFHQ, I highly recommends to preprocess images. (resize and convert to jpeg)
python extract_code.py --ckpt checkpoint/[VQ-VAE CHECKPOINT] --name [LMDB NAME] [DATASET PATH]
python train_pixelsnail.py [LMDB NAME]
Maybe it is better to use larger PixelSNAIL model. Currently model size is reduced due to GPU constraints.
Note: This is a training sample
“悟道”项目开源模型
Python Text C++ Shell Cuda other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》