Proj2Rep-CTFM
CT projections to image foundation-model representations.
Proj2Rep predicts CT-FM embeddings from CT detector measurements, using a measurement denoiser, analytic back-projection and a learned encoder. It produces 512-dimensional slab embeddings and regional features for representation research in chest and abdomen CT.
Paper: Proj2Rep: Predicting image foundation-model representations from CT detector measurements.
Input: prepared CT projections and scanner geometry. Output: CT-FM feature representations. Denoising is already part of inference.
Results at a glance
Selected routine-dose, full-view results from the latest release (RC3):
- 0.970 chest / 0.959 abdomen Pearson r in five-fold patient-level cross-validation of the measurement-encoder recipe.
- 0.945 Refined / 0.933 Adaptive r in the separate 117-patient manufacturer-adaptation evaluation.
- Refined RΒ² = 0.886, compared with 0.873 for the unrefined parent, in that adaptation evaluation.
Left: held-out fold models, 197 patients. Right: manufacturer adaptation, 117 patients. Bars show pointwise 95% whole-patient bootstrap intervals (2,000 resamples), conditional on trained fits. The two panels use distinct evaluation protocols. Chest and pooled abdomen are the primary cross-validation groups; the two abdomen manufacturer rows subdivide the pooled abdomen group.
Demo images
Routine-dose chest example at the same anatomical position and display window (β1250 to 450 HU). Left: scanner reference. Middle: back-projection of the original measurements. Right: back-projection after the learned measurement denoiser. The lower row enlarges the cyan-marked regions using the same normalized crop. These are stored preprocessing outputs from the all-development denoiser, shown as a qualitative illustration; the held-out results are reported separately below. Denoising operates on projections before back-projection; the model then encodes the resulting volume into embeddings.
400 dpi PNGs and vector PDFs: results Β· routine-dose demo Β· workflow.
Choose a model
| Model | Folder | Intended use |
|---|---|---|
| Proj2Rep-Universal | universal/ |
Encoder and denoiser trained on all 197 development scans; general embedding extraction within the supported data conventions |
| Proj2Rep-Adaptive | adaptive/ |
GE/Siemens base encoders with chest/abdomen readouts, two support draws, full or 1/2, 1/4, 1/8 views |
| Proj2Rep-Refined | refined/ |
GE/Siemens encoders refined with full-view support data; full-view inference only |
Manufacturer denoisers are in preprocessing/. Adaptive uses ten target patients per body region and a readout matched to view stride. Refined uses ten chest and ten abdomen support patients per manufacturer. Draws 0 and 1 are alternative support selections, not independent evaluation cohorts. The CLI retains --model adapter for Adaptive compatibility.
Cross-validation results
197 patients (99 chest, 98 abdomen), five folds, routine dose and full views. Results describe the held-out fold models of the Universal training recipe. The released Universal checkpoint was subsequently fitted to all 197 development scans.
| Group | Patients | Measurement r (95% CI) | Trained image r | Measurement RΒ² |
|---|---|---|---|---|
| Chest | 99 | 0.970 (0.967β0.972) | 0.968 | 0.940 |
| Abdomen | 98 | 0.959 (0.955β0.962) | 0.957 | 0.919 |
| Abdomen GE | 49 | 0.944 (0.938β0.950) | 0.941 | 0.890 |
| Abdomen Siemens | 49 | 0.956 (0.951β0.961) | 0.954 | 0.913 |
Routine-dose CV estimates. Pearson r measures association with the routine-image CT-FM features; RΒ² additionally reflects scale and offset agreement.
Adaptation results
117 evaluation patients, 3,432 slabs, routine dose and full views. Overall scores equally weight four manufacturer/body-region strata. The two support draws use the same evaluation patients.
| Group | Patients | Adaptive r (95% CI) | Refined r (95% CI) | Refined RΒ² |
|---|---|---|---|---|
| GE chest | 29 | 0.952 (0.946β0.957) | 0.955 (0.949β0.961) | 0.906 |
| GE abdomen | 29 | 0.913 (0.893β0.934) | 0.923 (0.912β0.934) | 0.846 |
| Siemens chest | 30 | 0.938 (0.926β0.950) | 0.958 (0.953β0.964) | 0.913 |
| Siemens abdomen | 29 | 0.931 (0.921β0.938) | 0.942 (0.933β0.948) | 0.881 |
Overall Adaptive r: 0.933 (0.927β0.940); Refined r: 0.945 (0.941β0.948).
Refinement improves RΒ² over the unrefined parent by 0.013 (95% CI 0.012β0.015). This is an absolute RΒ² difference, evaluated on the same patients.
Overall estimates Β· Manufacturer and region estimates.
Run inference
Install the download utility with pip install -U huggingface_hub. Download the repository:
from huggingface_hub import snapshot_download
snapshot_download("markjiang1/Proj2Rep-CTFM", local_dir="Proj2Rep-CTFM")
Install a suitable PyTorch build, then from the downloaded directory:
pip install -r requirements.txt
python infer.py --help
python infer.py scan --case /data/C001 --region chest --model adapter --draw 0 --source routine --view-stride 1 --output embeddings.npz
python infer.py scan --case /data/L004 --region abdomen --model refined --draw 1 --source routine --view-stride 1 --output refined.npz
python -m proj2rep encode --cases /data/C001 --work universal --folds -1 --out embeddings/
The case directory must follow the projection and geometry conventions; see input preparation and public API. Ordinary CT image files alone are insufficient. Universal returns slab positions (z0), slab embeddings (slab) and regional embeddings (regions). Keep manifest.json and scanner conventions with the models; they are required runtime inputs.
Smaller downloads
For Universal-only embedding extraction, download about 321 MB of runtime files instead of the full 2.24 GB repository:
hf download markjiang1/Proj2Rep-CTFM --local-dir Proj2Rep-Universal \
--include 'config.json' 'universal/*' 'proj2rep/*' 'requirements.txt' 'README.md' 'USAGE.md' 'LICENSE'
cd Proj2Rep-Universal
pip install -r requirements.txt
python -m proj2rep encode --cases /data/C001 --work universal --folds -1 --out embeddings/
Use the complete package for Adaptive or Refined. Download sizes describe the current files and exclude installed dependencies. Keep config.json in filtered downloads so normal Hub download counting remains available. Add --revision <commit-id> to pin a reproducible version.
Current release
This repository distributes the latest release (RC3). Earlier packaging snapshots contained identical weights and have been removed. Universal, Adaptive and Refined are distinct functional configurations within this single release.
Evaluation scope
This card presents selected routine-dose, full-view CT-FM embedding-agreement results for chest and abdomen from GE and Siemens scanners. Clinical outcome validation is outside this evaluation. Pearson correlation was added post hoc using saved predictions.
Code: MIT license. Upstream terms: CT-FM model card.
Download the complete model package
hf download markjiang1/Proj2Rep-CTFM --local-dir Proj2Rep-CTFM
This downloads the model files together with config.json, the package metadata used by Hugging Face's native download counter. Use the inference instructions above to load the model. The package metadata does not replace the runtime model configuration.
Download totals appear on this repository's model page. Hugging Face counts requests for designated files; downloading individual weight files without the configuration may not register. Counts represent Hub requests, not unique users. See Hugging Face download statistics.
- Downloads last month
- -


