MedGAN is a comprehensive framework for generating high-quality synthetic medical images using state-of-the-art Generative Adversarial Networks (GANs). The project focuses on brain tumor MRI scans and includes implementations of multiple cutting-edge GAN architectures optimized for medical imaging applications.
Multiple GAN Implementations:
Web Application Interface:
Pre-trained Models:
Architecture | Image Quality | Training Stability | Generation Diversity | Training Speed |
---|---|---|---|---|
ProGAN | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐ |
StyleGAN2 | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐ |
WGAN-GP | ⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐ |
DCGAN | ⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐ | ⭐⭐⭐⭐⭐ |
git clone https://github.com/mozaloom/medgan.git
cd medgan
pip install -r requirements.txt
python app.py
http://localhost:5000
The MedGAN web application offers two primary functionalities:
Generate synthetic brain MRI scans:
Detect tumor types:
Check the individual model implementation files for specific training parameters.
medgan/
├── app.py # Flask web application
├── medgan/ # Core GAN implementations
│ ├── dcgan.py
│ ├── progan.py
│ ├── stylegan.py
│ ├── wgan.py
│ └── vit.py
├── models/ # Pre-trained model weights
├── notebooks/ # Training notebooks
│ ├── dcgan/
│ ├── progan/
│ ├── stylegan/
│ └── wgan/
├── static/ # Web assets
└── templates/ # HTML templates
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.