Skip to main content

project-monai

MONAI Generative Models

Prototyping repository for generative models to be integrated into MONAI core, MONAI tutorials, and MONAI model zoo.

Features

  • Network architectures: Diffusion Model, Autoencoder-KL, VQ-VAE, Autoregressive transformers, (Multi-scale) Patch-GAN discriminator.
  • Diffusion Model Noise Schedulers: DDPM, DDIM, and PNDM.
  • Losses: Adversarial losses, Spectral losses, and Perceptual losses (for 2D and 3D data using LPIPS, RadImageNet, and 3DMedicalNet pre-trained models).
  • Metrics: Multi-Scale Structural Similarity Index Measure (MS-SSIM) and Fréchet inception distance (FID).
  • Diffusion Models, Latent Diffusion Models, and VQ-VAE + Transformer Inferers classes (compatible with MONAI style) containing methods to train, sample synthetic images, and obtain the likelihood of inputted data.
  • MONAI-compatible trainer engine (based on Ignite) to train models with reconstruction and adversarial components.
  • Tutorials including:
    • How to train VQ-VAEs, VQ-GANs, VQ-VAE + Transformers, AutoencoderKLs, Diffusion Models, and Latent Diffusion Models on 2D and 3D data.
    • Train diffusion model to perform conditional image generation with classifier-free guidance.
    • Comparison of different diffusion model schedulers.
    • Diffusion models with different parameterizations (e.g., v-prediction and epsilon parameterization).
    • Anomaly Detection using VQ-VAE + Transformers and Diffusion Models.
    • Inpainting with diffusion model (using Repaint method)
    • Super-resolution with Latent Diffusion Models (using Noise Conditioning Augmentation)

Roadmap

Our short-term goals are available in the Milestones section of the repository.

In the longer term, we aim to integrate the generative models into the MONAI core repository (supporting tasks such as, image synthesis, anomaly detection, MRI reconstruction, domain transfer)

Installation

To install the current release of MONAI Generative Models, you can run:

pip install monai-generative

To install the current main branch of the repository, run:

pip install git+https://github.com/Project-MONAI/GenerativeModels.git

Requires Python >= 3.8.

Contributing

For guidance on making a contribution to MONAI, see the contributing guidelines.

Community

Join the conversation on Twitter @ProjectMONAI or join our Slack channel.

Citation

If you use MONAI Generative in your research, please cite us! The citation can be exported from the paper.

Links

Metadata

Release files for monai-generative 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for monai-generative 0.2.3
File Size Uploaded Provenance Actions
monai-generative-0.2.3.tar.gz 114.6 kB Without provenance Details for monai-generative-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for monai-generative 0.2.3
File Interpreter ABI Platform Actions
monai_generative-0.2.3-py3-none-any.whl Python 3 none any Details for monai_generative-0.2.3-py3-none-any.whl

Total release size: 290.8 kB

Release files / monai-generative-0.2.3.tar.gz

Download URL monai-generative-0.2.3.tar.gz
Size 114.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0f54719c25fbc498a068004876a04c8bef771d968b013c0af378a5a4fc9a47d7
BLAKE2b-256 checksum
How to use checksums
4aadfcc3cb208da7834c57f7e40a746e07dd835c7e6580568e9c025eb36d8780
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / monai_generative-0.2.3-py3-none-any.whl

Download URL monai_generative-0.2.3-py3-none-any.whl
Size 176.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44dee6264e72f2e7577ad41104db48fae2ca701a3c35e2c74c7d14133b5a16a1
BLAKE2b-256 checksum
How to use checksums
3937d1f9e8efbd68b69edf791318ce9ced327ced4850896afe24f687a582204f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for monai-generative 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page