Text-to-3D
English
LDM+VAE
medical
dmolino commited on
Commit
484342d
·
verified ·
1 Parent(s): 60118c5

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +70 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Text-to-CT Model Weights
2
+
3
+ Checkpoints for **“Text-to-CT Generation via 3D Latent Diffusion Model with Contrastive Vision-Language Pretraining”** (Molino et al., 2025).
4
+ ---
5
+
6
+ ## Model Card for Text-to-CT Generation via 3D Latent Diffusion Model with Contrastive Vision-Language Pretraining
7
+
8
+ ### Model Description
9
+ - **Authors:** Daniele Molino, Camillo Maria Caruso, Filippo Ruffini, Paolo Soda, Valerio Guarrasi
10
+ - **Model type:** 3D latent diffusion (RFlow) + 3D VAE + CLIP3D text encoder for CT generation.
11
+ - **License:** Apache 2.0 (same as code release).
12
+ - **Sources:** Code https://github.com/cosbidev/Text2CT | Paper https://arxiv.org/abs/2506.00633
13
+ - **Demo:** Use `diff_model_demo.py` from the code release for a one-off generation from text.
14
+
15
+ ### Intended Use
16
+ - **Direct use:** Research/experimentation on text-conditioned 3D CT synthesis; generating synthetic data for benchmarking or augmentation.
17
+ - **Downstream use:** Fine-tuning or integration into broader research pipelines.
18
+ - **Out of scope:** Clinical decision-making, diagnostic use, or deployment without proper validation and approvals.
19
+
20
+ ### Risks & Limitations
21
+ - Trained on CT-RATE; may encode dataset biases and is not validated for clinical use.
22
+ - Synthetic outputs may contain artifacts; do not use for patient care.
23
+
24
+ ### Files included
25
+ - `autoencoder_epoch273.pt` — 3D VAE for latent compression/decoding.
26
+ - `unet_rflow_200ep.pt` — Diffusion UNet trained with rectified flow.
27
+ - `CLIP3D_Finding_Impression_30ep.pt` — CLIP3D weights for encoding reports.
28
+
29
+ ### How to Get Started (Python)
30
+ ```python
31
+ from huggingface_hub import hf_hub_download
32
+ repo_id = "yourname/text2ct-weights" # replace with the actual repo id
33
+
34
+ autoencoder_path = hf_hub_download(repo_id, "autoencoder_epoch273.pt")
35
+ unet_path = hf_hub_download(repo_id, "unet_rflow_200ep.pt")
36
+ clip_path = hf_hub_download(repo_id, "CLIP3D_Finding_Impression_30ep.pt")
37
+
38
+ # Use these in the code release configs:
39
+ # trained_autoencoder_path -> autoencoder_path
40
+ # existing_ckpt_filepath / model_filename -> unet_path
41
+ # clip_weights (for report embeddings) -> clip_path
42
+ ```
43
+
44
+ ### Training Data (for these weights)
45
+ - CT-RATE dataset (public on Hugging Face) for CT volumes and reports.
46
+
47
+ ### Training Procedure (summary)
48
+ - CLIP3D trained for vision-language alignment on CT+reports.
49
+ - VAE checkpoint from https://github.com/Project-MONAI/tutorials/tree/main/generation/maisi.
50
+ - Diffusion UNet trained with rectified flow (RFlow) in latent space, conditioned on text embeddings.
51
+
52
+ ### Evaluation
53
+ - See paper for quantitative and qualitative results.
54
+
55
+ ### Further Information
56
+ - 1,000 generated CT scans are available at https://huggingface.co/datasets/dmolino/CT-RATE_Generated_Scans.
57
+
58
+ ### Environmental Impact
59
+ - Not reported. Training used multi-GPU setup;.
60
+
61
+ ### Citation
62
+ If you use these weights or code, please cite the paper:
63
+ ```
64
+ @article{molino2025text,
65
+ title={Text-to-CT Generation via 3D Latent Diffusion Model with Contrastive Vision-Language Pretraining},
66
+ author={Molino, Daniele and Caruso, Camillo Maria and Ruffini, Filippo and Soda, Paolo and Guarrasi, Valerio},
67
+ journal={arXiv preprint arXiv:2506.00633},
68
+ year={2025}
69
+ }
70
+ ```