PGT

October 14, 2023 ยท View on GitHub

Prompt-based Grouping Transformer for Nucleus Detection and Classification

Overall Framework

Requisities

-python=3.8

-pytorch=1.12.1+cu102

Installation

Install mmcv using mim

pip install -U openmim
mim install mmcv-full==1.6.1

Git clone acformer

git clone https://github.com/LL3RD/PGT.git

Install

cd PGT
cd thirdparty/mmdetection
python -m pip install -e .
cd ../..
python -m pip install -e .

Dataset & Result

CoNSeP Dataset

Your can download 20x CoNSeP Dataset and Checkpoint from here.

MethodF1dF1cModel WeightsConfig Files
PGT0.7380.613CheckpointConfig

BRCA Dataset

Your can download BRCA Dataset and Checkpoint from here.

MethodF1dF1cModel WeightsConfig Files
PGT0.7990.523CheckpointConfig

Lizard Dataset

Your can download Original Lizard from the official website or Preprocessed Lizard and Checkpoint that is converted to hovernet consep format and split into patches.

MethodF1dF1cModel WeightsConfig Files
PGT0.7790.538CheckpointConfig

Training

Modify your dataset path in configs and run

CUDA_VISIBLE_DEVICES=0 bash tools/dist_train.sh configs/Swin_CoNSeP_PGT.py 1 --work-dir=Path_to_your_work_dir

Evaluation

Modify your dataset path and checkpoint path in tools/inference and run

python tools/inference/inference_CoNSeP_group.py
python tools/inference/inference_BRCA_group.py
python tools/inference/inference_Lizard_group.py

Acknowledgement