Text-to-3D
Diffusers
Safetensors
medical-imaging
ct-generation
flow-matching
diffusion
auto-regressive
Instructions to use EnyaWoooo/CTFlow with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use EnyaWoooo/CTFlow with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("EnyaWoooo/CTFlow", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files123---license: apache-2.0---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172---license: apache-2.0tags:- medical-imaging- ct-generation- flow-matching- diffusion- text-to-3d- auto-regressive---# CTFlow: Video-Inspired Latent Flow Matching for 3D CT Synthesis**ICCV 2025 Workshop on Vision-Language Models for 3D Understanding (VLM3D)**[[Paper]](https://openaccess.thecvf.com/content/ICCV2025W/VLM3D/papers/Wang_CTFlow_Video-Inspired_Latent_Flow_Matching_for_3D_CT_Synthesis_ICCVW_2025_paper.pdf) | [[GitHub]](https://github.com/WongJiayi/CTFlow)---## OverviewCTFlow is a **0.5B latent flow matching transformer** for generating entire 3D CT volumes conditioned on clinical reports.Key ideas:- Uses the **FLUX A-VAE** as the latent space encoder/decoder- Encodes clinical reports with the **CT-CLIP text encoder**- Generates CT volumes **auto-regressively block-by-block**, keeping memory tractable while maintaining temporal coherence across slices- Trained on **CT-RATE**, a large-scale dataset of 3D CT volumes paired with clinical reports---## CheckpointThis repository contains the pretrained **STDiT-L2** checkpoint (512M parameters, trained for 680,000 steps):```checkpoint-680000/└── denoiser_ema/ ← use this for inference```---## UsageSee the [GitHub repository](https://github.com/WongJiayi/CTFlow) for full installation instructions, training configs, and inference scripts.**Quick inference:**```bashgit clone https://github.com/WongJiayi/CTFlowcd CTFlowpython auto_regressive_generate/main.py \--config /path/to/config.yaml \--ckpt /path/to/checkpoint-680000/denoiser_ema \--embedding /path/to/ct_embedding.pt \--output output_frames/ \--type full-body```---## Citation```bibtex@InProceedings{Wang_2025_ICCVW,author = {Wang, Jiayi and Reynaud, Hadrien and Erick, Franciskus Xaverius and Kainz, Bernhard},title = {CTFlow: Video-Inspired Latent Flow Matching for 3D CT Synthesis},booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops},year = {2025},}```
README.md+72-3