Medigan
medigan - A Python Library of Pretrained Generative Models for Medical Image Synthesis
Install / Use
/learn @RichardObi/MediganREADME

medigan stands for medical generative (adversarial) networks. medigan provides user-friendly medical image synthesis and allows users to choose from a range of pretrained generative models to generate synthetic datasets. These synthetic datasets can be used to train or adapt AI models that perform clinical tasks such as lesion classification, segmentation or detection.
See below how medigan can be run from the command line to generate synthetic medical images.

Features:
-
:x: Problem 1: Data scarcity in medical imaging.
-
:x: Problem 2: Scarcity of readily reusable generative models in medical imaging.
-
:white_check_mark: Solution:
medigan- dataset sharing via generative models :gift:
- data augmentation :gift:
- domain adaptation :gift:
- synthetic data evaluation method testing with multi-model datasets :gift:
Instead of training your own, use one of the generative models from medigan to generate synthetic data.
Search and find a model in medigan using search terms (e.g. "Mammography" or "Endoscopy").
Contribute your own generative model to medigan to increase its visibility, re-use, and impact.
Available models
| Output type | Modality | Model type | Output size | Base dataset | Output examples | model_id | Hosted on | Reference |
|-------------------------------------------------------------|:-----------------------------:|:-----------------------------:|:-----------------------:|:--------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------:|
| <sub> Breast Calcification </sub> | <sub> mammography </sub> | <sub> dcgan </sub> | <sub> 128x128 </sub> | <sub> Inbreast </sub> |
| <sub> 00001_DCGAN_MMG_CALC_ROI </sub> | <sub>Zenodo (5187714) </sub> | |
| <sub> Breast Mass </sub> | <sub> mammography </sub> | <sub> dcgan </sub> | <sub> 128x128 </sub> | <sub> Optimam </sub> |
| <sub> 00002_DCGAN_MMG_MASS_ROI </sub> | <sub>Zenodo (5188557) </sub> | <sub>Alyafi et al (2019) </sub> |
| <sub> Breast Density Transfer </sub> | <sub> mammography </sub> | <sub> cyclegan </sub> | <sub>1332x800 </sub> | <sub> BCDR </sub> |
| <sub> 00003_CYCLEGAN_MMG_DENSITY_FULL </sub> | <sub>Zenodo (5547263) </sub> | <sub> Garrucho et al (2022) </sub> |
| <sub> Breast Mass with Mask </sub> | <sub> mammography </sub> | <sub> pix2pix </sub> | <sub> 256x256 </sub> | <sub> BCDR </sub> |
<br>
| <sub><sub> 00004_PIX2PIX_MMG_MASSES_W_MASKS </sub></sub> | <sub>Zenodo (7093759) </sub> | |
| <sub> Breast Mass </sub> | <sub> mammography </sub> | <sub> dcgan </sub> | <sub> 128x128 </sub> | <sub> BCDR </sub> |
| <sub> 00005_DCGAN_MMG_MASS_ROI </sub> | <sub>Zenodo (6555188) </sub> | <sub>Szafranowska et al (2022) </sub> |
| <sub> Breast Mass </sub> | <sub> mammography </sub> | <sub> wgan-gp </sub> | <sub> 128x128 </sub> | <sub> BCDR </sub> |
| <sub> 00006_WGANGP_MMG_MASS_ROI </sub> | <sub>Zenodo (6554713) </sub> | <sub>Szafranowska et al (2022) </sub> |
| <sub> Brain Tumors on Flair, T1, T1c, T2 with Masks </sub> | <sub> brain MRI </sub> | <sub> inpaint GAN </sub> | <sub> 256x256 </sub> | <sub> [BRATS 2018](https://wiki.cancerimagingarchive.net/pages/viewpag
Related Skills
claude-opus-4-5-migration
82.0kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
333.3kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
mcp-for-beginners
15.6kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
TrendRadar
49.7k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
