SEED-Voken: A Series of Powerful Visual Tokenizers
Python
1,022
31 commits
updated Nov 25, 2025
The project aims to provide advanced visual tokenizers for autoregressive visual generation and currently supports the following methods:
Open-MAGVIT2: An Open-source Project Toward Democratizing Auto-Regressive Visual Generation
Zhuoyan Luo*, Fengyuan Shi*, Yixiao Ge, Yujiu Yang, Limin Wang, Ying Shan
ARC Lab Tencent PCG, Tsinghua University, Nanjing University
πOpen-MAGVIT2.md@article{luo2024open, title={Open-MAGVIT2: An Open-Source Project Toward Democratizing Auto-regressive Visual Generation}, author={Luo, Zhuoyan and Shi, Fengyuan and Ge, Yixiao and Yang, Yujiu and Wang, Limin and Shan, Ying}, journal={arXiv preprint arXiv:2409.04410}, year={2024} }
IBQ: Scalable Image Tokenization with Index Backpropagation Quantization
Fengyuan Shi*, Zhuoyan Luo*, Yixiao Ge, Yujiu Yang, Ying Shan, Limin Wang
Nanjing University, Tsinghua University, ARC Lab Tencent PCG
πIBQ.md@InProceedings{Shi_2025_ICCV, author={Shi, Fengyuan and Luo, Zhuoyan and Ge, Yixiao and Yang, Yujiu and Shan, Ying and Wang, Limin}, title={Scalable Image Tokenization with Index Backpropagation Quantization}, booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)}, month={October}, year={2025}, pages={16037-16046} }
0.39 rFID for 8x downsampling) compared to VQGAN, MaskGIT, and recent TiTok, LlamaGen, and OmniTokenizer.Our codebase supports both NPU and GPU for training and inference. All experiments were conducted using the Ascend 910B for training, and we validated our models on the V100. The observed performance between the two platforms is nearly identical.
Python 3.8.8 and CUDA 11.8 (other versions may also be fine).pip install -r requirements.txtPython 3.9.16 and CANN 8.0.T13torch=2.1.0+cpu + torch-npu=2.1.0.post3-20240523 + LightningPython 3.9.16 and CANN 8.0.T62torch=2.1.0+cpu + torch-npu=2.1.0.post10.dev20241128 + LightningOther Dependencies: see in requirements.txt
We use Imagenet2012 as our Image dataset.
imagenet
βββ train/
βββ n01440764
βββ n01440764_10026.JPEG
βββ n01440764_10027.JPEG
βββ ...
βββ n01443537
βββ ...
βββ val/
βββ ...
We use UCF-101 as our Video Dataset
UCF101
βββ train/
βββ class_0
βββ video_1.mp4
βββ video_2.mp4
βββ ...
βββ class_1
βββ class_2
βββ val/
βββ ...
The preparation of UCF-101 can be referred to VideoGPT
We recommend the data are organized in the following tar format.
data
βββ LAION_COCO/
βββ webdataset
βββ 1.tar
βββ 2.tar
βββ 3.tar
βββ ...
βββ CC12M/
βββ webdataset
βββ 1.tar
βββ 2.tar
βββ 3.tar
βββ ...
Before pretraining, the sample.json and filter_keys.json of each datasets should be prepared. Please refer to src/Open_MAGVIT2/data/prepare_pretrain.py
The training and evaluation scripts are in Open-MAGVIT2.md and IBQ.md.
We thank Lijun Yu for his encouraging discussions. We refer a lot from VQGAN and MAGVIT. We also refer to LlamaGen, VAR, RQVAE and VideoGPT, OmniTokenizer. We also thank Bowen Zheng for pointing out that the IBQ is mathematically equivalent to the deterministic hard-gumbel without temperature implementation available in the lucidrains/vector-quantize-pytorch library. Thanks for their wonderful work.
Python
97.0%
Shell
3.0%
SEED-Voken: A Series of Powerful Visual Tokenizers
Python
1,022
31 commits
updated Nov 25, 2025
The project aims to provide advanced visual tokenizers for autoregressive visual generation and currently supports the following methods:
Open-MAGVIT2: An Open-source Project Toward Democratizing Auto-Regressive Visual Generation
Zhuoyan Luo*, Fengyuan Shi*, Yixiao Ge, Yujiu Yang, Limin Wang, Ying Shan
ARC Lab Tencent PCG, Tsinghua University, Nanjing University
πOpen-MAGVIT2.md@article{luo2024open, title={Open-MAGVIT2: An Open-Source Project Toward Democratizing Auto-regressive Visual Generation}, author={Luo, Zhuoyan and Shi, Fengyuan and Ge, Yixiao and Yang, Yujiu and Wang, Limin and Shan, Ying}, journal={arXiv preprint arXiv:2409.04410}, year={2024} }
IBQ: Scalable Image Tokenization with Index Backpropagation Quantization
Fengyuan Shi*, Zhuoyan Luo*, Yixiao Ge, Yujiu Yang, Ying Shan, Limin Wang
Nanjing University, Tsinghua University, ARC Lab Tencent PCG
πIBQ.md@InProceedings{Shi_2025_ICCV, author={Shi, Fengyuan and Luo, Zhuoyan and Ge, Yixiao and Yang, Yujiu and Shan, Ying and Wang, Limin}, title={Scalable Image Tokenization with Index Backpropagation Quantization}, booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)}, month={October}, year={2025}, pages={16037-16046} }
0.39 rFID for 8x downsampling) compared to VQGAN, MaskGIT, and recent TiTok, LlamaGen, and OmniTokenizer.Our codebase supports both NPU and GPU for training and inference. All experiments were conducted using the Ascend 910B for training, and we validated our models on the V100. The observed performance between the two platforms is nearly identical.
Python 3.8.8 and CUDA 11.8 (other versions may also be fine).pip install -r requirements.txtPython 3.9.16 and CANN 8.0.T13torch=2.1.0+cpu + torch-npu=2.1.0.post3-20240523 + LightningPython 3.9.16 and CANN 8.0.T62torch=2.1.0+cpu + torch-npu=2.1.0.post10.dev20241128 + LightningOther Dependencies: see in requirements.txt
We use Imagenet2012 as our Image dataset.
imagenet
βββ train/
βββ n01440764
βββ n01440764_10026.JPEG
βββ n01440764_10027.JPEG
βββ ...
βββ n01443537
βββ ...
βββ val/
βββ ...
We use UCF-101 as our Video Dataset
UCF101
βββ train/
βββ class_0
βββ video_1.mp4
βββ video_2.mp4
βββ ...
βββ class_1
βββ class_2
βββ val/
βββ ...
The preparation of UCF-101 can be referred to VideoGPT
We recommend the data are organized in the following tar format.
data
βββ LAION_COCO/
βββ webdataset
βββ 1.tar
βββ 2.tar
βββ 3.tar
βββ ...
βββ CC12M/
βββ webdataset
βββ 1.tar
βββ 2.tar
βββ 3.tar
βββ ...
Before pretraining, the sample.json and filter_keys.json of each datasets should be prepared. Please refer to src/Open_MAGVIT2/data/prepare_pretrain.py
The training and evaluation scripts are in Open-MAGVIT2.md and IBQ.md.
We thank Lijun Yu for his encouraging discussions. We refer a lot from VQGAN and MAGVIT. We also refer to LlamaGen, VAR, RQVAE and VideoGPT, OmniTokenizer. We also thank Bowen Zheng for pointing out that the IBQ is mathematically equivalent to the deterministic hard-gumbel without temperature implementation available in the lucidrains/vector-quantize-pytorch library. Thanks for their wonderful work.
Python
97.0%
Shell
3.0%