Skip to content

[MICCAI 2023][Early Accept] Official code repository of paper titled "Cross-modulated Few-shot Image Generation for Colorectal Tissue Classification"

Notifications You must be signed in to change notification settings

VIROBO-15/XM-GAN

Repository files navigation

Cross-modulated Few-shot Image Generation for Colorectal Tissue Classification [MICCAI 2023]

Cross-modulated Few-shot Image Generation for Colorectal Tissue Classification
Amandeep Kumar, Ankan Kumar Bhunia, Sanath Narayan, Hisham Cholakkal, Rao Muhammad Anwer, Jorma Laaksonen,Fahad Shahbaz Khan

paper YouTube slides

Abstract: In this work, we propose a few-shot colorectal tissue image generation method for addressing the scarcity of histopathological training data for rare cancer tissues. Our few-shot generation method, named XM-GAN, takes one base and a pair of reference tissue images as input and generates high-quality yet diverse images. Within our XM-GAN, a novel controllable fusion block densely aggregates local regions of reference images based on their similarity to those in the base image, resulting in locally consistent features. To the best of our knowledge, we are the first to investigate few-shot generation in colorectal tissue images. We evaluate our few-shot colorectral tissue image generation by performing extensive qualitative, quantitative and subject specialist (pathologist) based evaluations. Specifically, in specialist-based evaluation, pathologists could differentiate between our XM-GAN generated tissue images and real images only 55% time. Moreover, we utilize these generated images as data augmentation to address the few-shot tissue image classification task, achieving a gain of 4.4% in terms of mean accuracy over the vanilla few-shot classifier..

🚀 News

  • September 6, 2023 : Released code for XMGAN
  • May 25, 2023 : Early acceptance in MICCAI 2023 (top 14%)    🎊

Setup

  • Get code
git clone https://github.com/VIROBO-15/XM-GAN.git
  • Build environment
cd XM-GAN
# use anaconda to build environment 
conda create -n xmgan python=3.6
conda activate xmgan
conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia

Dataset

Download the data: You can download the colorectral cancer images here. Unzip and rename the folder as data.

Run the following code to save the image in the .npy format:

python create_npy.py --dir data

Training

python train.py --conf configs/cancer.yaml --output_dir results/cancer --gpu 0
  • You may also customize the parameters in configs.

Testing

python test.py --name result/cancer --gpu 0 --conf configs/cancer.yaml 

The generated images will be saved in results/cancer/test.

Citation

If you find our work helpful, please star🌟 this repo and cite📑 our paper. Thanks for your support!

@article{kumar2023cross,
  title={Cross-modulated Few-shot Image Generation for Colorectal Tissue Classification},
  author={Kumar, Amandeep and Narayan, Sanath and Cholakkal, Hisham and Anwer, Rao Muhammad and Laaksonen, Jorma and Khan, Fahad Shahbaz and others},
  journal={arXiv preprint arXiv:2304.01992},
  year={2023}
}

Acknowledgement

Our code is designed based on LoFGAN.

Contact

If you have any question, please create an issue on this repository or contact at [email protected]


About

[MICCAI 2023][Early Accept] Official code repository of paper titled "Cross-modulated Few-shot Image Generation for Colorectal Tissue Classification"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages