Skip to content

Leejucheon96/Order-ViT

Repository files navigation

Order-ViT

Order-ViT: Order Learning Vision Transformer for Cancer Classification in Pathology Images

PyTorch Lightning Config: Hydra Template
Paper Conference

Description

Order-ViT

The overall model architecture is as follows. Categorical classification and sequential relationship classification problems are performed simultaneously.

Datasets

All the models in this project were evaluated on the following datasets:

How to run

Install dependencies

# clone project
git clone https://github.com/Leejucheon96/Order-ViT.git


# [OPTIONAL] create conda environment
conda env create -f order_vit_environment.yml
conda activate order_vit_environment

#We install Pytorch version 1.10.0 with CUDA 11.4

Repository

/config: data and model parameter setting
/scripts: .sh file
/src: data load and augmentation, model code

How to training for Only Categorical classification and Order-learning

## Only Categorical classification
# model.name = timm model name & ../train_test: Code for validating different datasets using the best model
Using /scripts/classification.sh

## Order-learning
# ../train_test: Code for validating different datasets using the best model
Using /scripts/order_learning.sh

## feature extracture for voting (Using mamory bank)
# Feature vectors for voting through the following paths are selected in advance.: ../src/models/save_features_module.py
Using /scripts/features.sh

## voting
# sub_prob: First prob - Second prob
# trust: Meaning validated datasets described in the paper
(How to correctly predict among feature vectors extracted through features.sh and select a picture vector with a probability of 0.9 or higher at the time)
Using /scripts/voting.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published