Home

Awesome

nu_gan

This repository contains the Python implementation for our paper Unsupervised Learning for Cell-level Visual Representation in Histopathology Images with Generative Adversarial Networks, Bo Hu♯ , Ye Tang♯ , Eric I-Chao Chang, Yubo Fan, Maode Lai and Yan Xu* (* corresponding author; ♯ equal contribution), arxiv, IEEE

Specially thanks for the open source codes shared by caogang/wgan-gp and DigitalSlideArchive/HistomicsTK

Requirements

Usage

1) Download Data

2) Extract

The default path should be ./experiemnt/data. You can make new directory /experiment under the root, extract the data, then rename the directory name to data. You can also open nu_gan.py to change the default path.

3) Usage

Three tasks can be chosen using flags as follows.

python nu_gan.py --task 'cell_representation'
python nu_gan.py --task 'image_classification'
python nu_gan.py --task 'cell_segmentation'

For convenience, the parameters for training is stored in nu_gan.py, which can be changed easily.