TokenFlow
[CVPR 2025] π₯ Official impl. of "TokenFlow: Unified Image Tokenizer for Multimodal Understanding and Generation".
File Explorer
Download Latest Version (.zip)- radar.png
- teasor.png
- llava_llama.py
- llava_mistral.py
- llava_mpt.py
- llava_qwen.py
- llava_qwen_moe.py
- vgg.pth
- builder.py
- clip_encoder.py
- open_clip_encoder.py
- siglip_encoder.py
- tokenflow_vq.py
- vision_tokenizer.py
- builder.py
- __init__.py
- apply_delta.py
- builder.py
- consolidate.py
- llava_arch.py
- make_delta.py
- utils.py
- extreme_ironing.jpg
- waterview.jpg
- __init__.py
- cli.py
- controller.py
- gradio_web_server.py
- model_worker.py
- register_worker.py
- sglang_worker.py
- test_message.py
- llama_flash_attn_monkey_patch.py
- llama_xformers_attn_monkey_patch.py
- llava_trainer.py
- train.py
- train_mem.py
- __init__.py
- constants.py
- conversation.py
- mm_utils.py
- utils.py
- train.sh
- cog.yaml
- pyproject.toml
- __init__.py
- dataset.py
- process.py
- run_llava_samples.py
- llava_llama.py
- modeling_llama.py
- vgg.pth
- builder.py
- clip_encoder.py
- tokenflow.py
- vision_tokenizer.py
- builder.py
- __init__.py
- apply_delta.py
- builder.py
- llava_arch.py
- make_delta.py
- utils.py
- llava_trainer.py
- train.py
- train_mem.py
- train_plain.py
- __init__.py
- constants.py
- conversation.py
- mm_utils.py
- utils.py
- run_t2i.sh
- train_t2i.sh
- requirements.txt
- augmentation.py
- build.py
- coco.py
- imagenet.py
- openimage.py
- __init__.py
- inception.py
- pytorch_fid.py
- reconstruction_vq.sh
- reconstruction_vq_siglip.sh
- train_vq.sh
- train_vq_finetune_decoder.sh
- train_vq_finetune_enhanced_decoder.sh
- __init__.py
- bpe_simple_vocab_16e6.txt.gz
- clip.py
- model.py
- simple_tokenizer.py
- discriminator.py
- discriminator_patchgan.py
- discriminator_stylegan.py
- lpips.py
- norm_ema_quantizer.py
- reconstruction_vq_ddp.py
- transforms.py
- vq_loss.py
- vq_model.py
- vq_train.py
- vqkd_model.py
- data.py
- deepspeed.py
- distributed.py
- drop_path.py
- ema.py
- logger.py
- requirements_tokenflow.txt
- .gitignore
- GETTING_STARTED.md
- LICENSE
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/ByteVisionLab/TokenFlow
Downloads the entire project code from GitHub to your computer.
cd TokenFlow
Moves into the project folder you just downloaded.
2. Python
Easy RecommendedPrerequisites
pip install -r t2i/requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
python <μ€νν νμΌλͺ
>.py # READMEμμ μ νν μ€ν νμΌλͺ
μ νμΈνμΈμ
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
// repository documentation
Was this content helpful?
(0 ratings)
