Run this model with HF Jobs

Run EnyaWoooo/CTFlow on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/EnyaWoooo/CTFlow. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/EnyaWoooo/CTFlow on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

CTFlow: Video-Inspired Latent Flow Matching for 3D CT Synthesis

ICCV 2025 Workshop on Vision-Language Models for 3D Understanding (VLM3D)

[Paper] | [GitHub]


Overview

CTFlow 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

Checkpoint

This repository contains the pretrained STDiT-L2 checkpoint (512M parameters, trained for 680,000 steps):

checkpoint-680000/
└── denoiser_ema/     ← use this for inference

Usage

See the GitHub repository for full installation instructions, training configs, and inference scripts.

Quick inference:

git clone https://github.com/WongJiayi/CTFlow
cd CTFlow

python 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

@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},
}
Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support