Code Monkey home page Code Monkey logo

pgt's Introduction

PGT

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.

Method F1d F1c Model Weights Config Files
PGT 0.738 0.613 Checkpoint Config

BRCA Dataset

Your can download BRCA Dataset and Checkpoint from here.

Method F1d F1c Model Weights Config Files
PGT 0.799 0.523 Checkpoint Config

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.

Method F1d F1c Model Weights Config Files
PGT 0.779 0.538 Checkpoint Config

Training

The training contains two phases, In the pre-tuning phase, modify your dataset path in configs/Swin_BRCA.py and run

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

Then modify the load_from path in configs/Swin_BRCA_PGT.py and run

CUDA_VISIBLE_DEVICES=0 bash tools/dist_train.sh configs/Swin_BRCA_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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.