Skip to main content

Fast and lightweight CLI for synthetic CT generation using IMPACT-Synth models within the KonfAI framework.

Project description

PyPI version Python License KonfAI

IMPACT-Synth-KonfAI

Fast and lightweight CLI for synthetic CT generation using IMPACT-Synth models within the KonfAI framework.


🧩 Overview

IMPACT-Synth-KonfAI is the command-line interface (CLI) for performing inference and uncertainty estimation with the IMPACT-Synth models.
It provides a streamlined way to generate synthetic CT (sCT) images from MR or CBCT scans, leveraging the KonfAI framework for efficient inference, test-time augmentation (TTA), model ensembling, and uncertainty quantification.

The underlying IMPACT-Synth models are a family of supervised convolutional neural networks (CNNs) dedicated to sCT generation. They build upon the research presented in “Why Registration Quality Matters: Enhancing sCT Synthesis with IMPACT-Based Registration” (Boussot et al., 2025).
These models are trained on carefully aligned MR–CT pairs, where alignment is optimized through the IMPACT-Reg loss to minimize spatial bias. Their training further integrates the IMPACT-Synth loss, a perceptual loss derived from semantic representations of segmentation networks. Together, precise spatial alignment and semantic perceptual supervision reinforce anatomical fidelity and realistic tissue contrast in the synthesized CT images.

The official IMPACT-Synth models are available on Hugging Face and can be executed directly through this CLI.


🚀 Installation

From PyPI:

pip install Impact-Synth-KonfAI

From source:

git clone https://github.com/vboussot/Impact-Synth-KonfAI.git
cd Impact-Synth-KonfAI
pip install .

⚙️ Usage

Perform image-to-sCT synthesis:

impact-synth-konfai -i input.nii.gz -o sCT.nii.gz

Optional arguments

Flag Description Default
-i, --input Path to the input file required
-o, --output Path to save the synthetic CT sCT.mha
-m, --model Model name on Hugging Face MR
--tta Number of test-time augmentations (TTA) 2
--ensemble Number of models to ensemble 5
--mc_dropout Monte Carlo dropout samples for uncertainty 1
--uncertainty Save uncertainty maps False
-g, --gpu GPU list (e.g. 0 or 0,1) CPU if unset
--cpu Number of CPU cores (if no GPU) 1
-q, --quiet Suppress console output False

Example

impact-synth-konfai -i patient01.nii.gz -o sCT_patient01.nii.gz --gpu 0 --tta 2 --ensemble 5 --uncertainty

🧠 Features

  • Fast inference powered by KonfAI
  • 🤗 Automatic model download from Hugging Face
  • 🧩 Multi-model ensembling and test-time augmentation (TTA)
  • 🧠 Handles uncertainty estimation
  • 🧾 Multi-format compatibility: supports all major medical image formats handled by ITK

📚 References

If you use IMPACT-Synth-KonfAI in your work, please cite:

  • Boussot, V., Hémon, C., Nunes, J.-C., & Dillenseger, J.-L. (2025).
    Why Registration Quality Matters: Enhancing sCT Synthesis with IMPACT-Based Registration.
    arXiv preprint arXiv:2510.21358

  • Boussot, V., & Dillenseger, J.-L. (2025).
    KonfAI: A Modular and Fully Configurable Framework for Deep Learning in Medical Imaging.
    arXiv preprint arXiv:2508.09823


🔗 Links


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

impact_synth_konfai-1.4.5.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

impact_synth_konfai-1.4.5-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file impact_synth_konfai-1.4.5.tar.gz.

File metadata

  • Download URL: impact_synth_konfai-1.4.5.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for impact_synth_konfai-1.4.5.tar.gz
Algorithm Hash digest
SHA256 6c702c54c8f10915a56d4fe9b3b8d3c20b0012663a648641c8f91b94eb613c99
MD5 1cd9eb70bb285836c92f51195dd93e5d
BLAKE2b-256 faa4a5b34ab17f504caf866c9a2632fae2d6ea944673ff05f96f7faaaff57016

See more details on using hashes here.

Provenance

The following attestation bundles were made for impact_synth_konfai-1.4.5.tar.gz:

Publisher: publish.yml on vboussot/KonfAI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file impact_synth_konfai-1.4.5-py3-none-any.whl.

File metadata

File hashes

Hashes for impact_synth_konfai-1.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 81dfb82bc3bf9f0de7ed72d9436dd9b0f291021e0472086ff6537a668c7650d4
MD5 b41cefbff3ed56643675535e83cc56a4
BLAKE2b-256 564242854bbecda7744f1f43a9acbf5db396ddca25ba768aa58e7877b9c036a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for impact_synth_konfai-1.4.5-py3-none-any.whl:

Publisher: publish.yml on vboussot/KonfAI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page