Installation¶
Requirements¶
- Python 3.10, 3.11 or 3.12
- PyTorch 2.2 or newer. A CUDA GPU is recommended for training the generator; all other stages run on the CPU.
- Tk for the study browser. It is part of most
Python installations; on Debian or Ubuntu install
python3-tkifimport tkinterfails.
Install the package¶
Install PyTorch first if you need a specific CUDA build; follow the PyTorch instructions. Otherwise pip selects a default build as a dependency.
The package installs its runtime dependencies: PyTorch, Optuna, NumPy, SciPy, pandas, scikit-image, Matplotlib and tqdm. Check the installation with:
Then continue with the quick start.
Optional dependencies¶
| Extra | Needed for | Installs |
|---|---|---|
examples |
the image and NIfTI example loaders in the repository | nibabel, Pillow |
dinov3 |
the DINOv3 downstream models of the MVTec AD 2 benchmark | transformers, Pillow |
The examples themselves are part of the repository, not of the PyPI package, so they need a repository checkout.
Image harmonization¶
The optional PCTNet and LBM harmonizers of the
classical fusion backend use libcom
and require a CUDA GPU. Install the pinned dependency only when image
harmonization is needed:
libcom downloads the selected pretrained model files on first use. The
revision is pinned because the current PyPI release of libcom does not
contain the LBM backend. It is installed separately because PyPI rejects
direct URL dependencies in package metadata, including optional extras.