Git Product home page Git Product logo

mam-e's Introduction

MAM-E: Mammographic synthetic image generation with diffusion models


Running GUI

Access our GUI for the inference of the models here!

Note: The availability of the GUI is not guaranteed 24/7.

Main contributors

  • Ricardo Montoya-del-Angel

  • Robert Martí

Research group

  • Computer Vision and Robotics Institute (ViCOROB) of the University of Girona (UdG)


alt text

This repository contains the code derived from the Master thesis project on mammographic image generation using diffusion models. This project is part of the final assessment to obtain the Joint Master's degree in Medical Imaging and Applications (MAIA) at the University of Girona (Spain), the University of Cassino and Southern Lazio (Italy) and the University of Bourgogne (France).

Description


In this work, we propose exploring the use of diffusion models for the generation of high quality full-field digital mammograms using state-of-the-art conditional diffusion pipelines. Additionally, we propose using stable diffusion models for the inpainting of synthetic lesions on healthy mammograms. We introduce MAM-E, a pipeline of generative models for high quality mammography synthesis controlled by a text prompt and capable of generating synthetic lesions on specific sections of the breast.

Main documentation


The paper of this project can be found here: MAM-E: Mammographic Synthetic Image Generation with Diffusion Models.

Additionally, the report of the project, the slides of the presentation and the poster can be found in the documentation folder.

Set up the environment


Two versions of the environment are provided. The first one is a conda environment which can be installed with:

conda env create -f dreambooth.yml
conda activate dreambooth

Attention: several packages are not available in conda and need to be installed via pip. The packages in question are mainly Hugging Face's and should be installed from source using:

pip install git+https://github.com/huggingface/transformers

Refer to the Hugging Face documentation for more information.

For a more clear insight of the specific pip packages needed, refer to the dreambooth_requirements.txt file.

Repository structure


The repository is structured as follows:

  • assessment: code for qualitative and quantitative assessment of the generated images.
  • data (not included in the repository): contains the data used for training the models.
  • dataset_analysis: code for the analysis of the dataset. This includes constructing the dataset metadata, saving png files, creating masks, prompt, etc.
  • datasets_local: contains useful functions for the dataset creation.
  • envs: contains the conda and pip environment files.
  • experiments: contains the code for the main experiments. It is divided in several sections. The main ones are::
    • dreambooth: original code for the Dreambooth model.
    • inference: code for the inference of the models, including GradIO GUI implementations.
    • inpainting: for the inpainting experiments.
    • with_prompt: main SD and Dreambooth experiments.
  • figures: contains the figures used in the README.
  • generation (future work): for the use of synthetic images in the training of CAD systems.
  • results (not included in the repository): contains the weights, pipeline configuration files and some logging files for the experiments. (The same information can be found in the Hugging Face repository of the first author).

Citation

If you find this project useful, please consider citing it:

@Article{s24072076,
AUTHOR = {Montoya-del-Angel, Ricardo and Sam-Millan, Karla and Vilanova, Joan C. and Martí, Robert},
TITLE = {MAM-E: Mammographic Synthetic Image Generation with Diffusion Models},
JOURNAL = {Sensors},
VOLUME = {24},
YEAR = {2024},
NUMBER = {7},
ARTICLE-NUMBER = {2076},
URL = {https://www.mdpi.com/1424-8220/24/7/2076},
ISSN = {1424-8220},
DOI = {10.3390/s24072076}
}

mam-e's People

Contributors

likalto4 avatar dependabot[bot] avatar

Stargazers

Franklin Anthony avatar Suesarn Wilainuch avatar Eyüp Ülker avatar Mahbod Issaiy avatar  avatar Yueying Tian avatar Wenting Chen avatar jinghanSun avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.