bupt-ai-cz / BCI

BCI: Breast Cancer Immunohistochemical Image Generation through Pyramid Pix2pix
Other
182 stars 17 forks source link
breast-cancer-detection breast-cancer-histopathology cnn computer computer-vision cvpr2022 deep-learning gan image-generation image-to-image-translation medical-diagnosis medical-image-generation pytorch

BCI: Breast Cancer Immunohistochemical Image Generation through Pyramid Pix2pix visitors

Project | Arxiv | PWC PWC | Tweet

News


datasetview_github


Framework

framework

Setup

1)Envs

Install python packages

git clone https://github.com/bupt-ai-cz/BCI
cd PyramidPix2pix
pip install -r requirements.txt

2)Prepare dataset

Train at resolution 512*512 (less GPU memory required):

python train.py --dataroot ./datasets/BCI --preprocess crop --crop_size 512 --gpu_ids 0 --pattern L1_L2_L3_L4

Images are randomly cropped if trained at low resolution.

Test

Test at full resolution(1024*1024):

python test.py --dataroot ./datasets/BCI --gpu_ids 0

Test at resolution 512*512:

python test.py --dataroot ./datasets/BCI --preprocess crop --crop_size 512 --gpu_ids 0

See PyramidPix2pix/options for more train and test options.

Evaluate

Calculate average PSNR and SSIM.

python evaluate.py --result_path ./results/pyramidpix2pix

Trained models

dataset device backbone PSNR SSIM model
BCI Tesla V100-32GB resnet_9 21.16 0.477 download
LLVIP Tesla V100-32GB resnet_9 12.189 0.279 download

Results

visualization results2 results3
results4 results5

Citation

@InProceedings{Liu_2022_CVPR,
    author    = {Liu, Shengjie and Zhu, Chuang and Xu, Feng and Jia, Xinyu and Shi, Zhongyue and Jin, Mulan},
    title     = {BCI: Breast Cancer Immunohistochemical Image Generation Through Pyramid Pix2pix},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops},
    month     = {June},
    year      = {2022},
    pages     = {1815-1824}
}

Contact

Shengjie Liu (shengjie.Liu@bupt.edu.cn)

Chuang Zhu (czhu@bupt.edu.cn)

If you have any questions, you can contact us directly.