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
- Pytorch
- HistomicsTK
- An Unofficial Compiled Version of HistomicsTK (Python 3.5.6, GCC 7.3.0, Ubuntu 16.04.3 LTS)
- Dataset A: Google Drive
- Dataset B: Google Drive
- (original images: Google Drive)
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.
Three tasks can be chosen using flags as follows.
- Unsupervised Cell-level Classification:
python nu_gan.py --task 'cell_representation'
- Unsupervised Image-level Classification:
python nu_gan.py --task 'image_classification'
- Neuclei Segmentation:
python nu_gan.py --task 'cell_segmentation'
For convenience, the parameters for training is stored in nu_gan.py, which can be changed easily.