Code Monkey home page Code Monkey logo

peterlipan / mrc_vfc Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 933 KB

The souce code of MICCAI'23 paper: Combat Long-tails in Medical Classification with Relation-aware Consistency and Virtual Features Compensation

Home Page: https://link.springer.com/chapter/10.1007/978-3-031-43987-2_2

Python 95.78% Shell 4.22%
dermoscopy isic-2019 isic-archive isic-challenge miccai2023 miccai skin-cancer cancer-detection imbalanced-classification long-tailed-recognition skin-lesion-classification long-tail

mrc_vfc's Introduction

MRC-VFC

[MICCAI 2023] This is the official repository of our paper Combat Long-tails in Medical Classification with Relation-aware Consistency and Virtual Features Compensation.

framework

Requirements

isic-cli (https://github.com/ImageMarkup/isic-cli)

torch==1.12.0

torchvision==0.13.0

wandb==0.13.5

torchsampler==0.1.2

scikit-image==0.19.3

imbalanced-learn==0.9.0

albumentations==1.3.0

scikit-learn==1.0.2

Dataset preparation

To start with, download the official ISIC datasets and split them into train/val/test:

# ISIC 2019
bash ./prepare_datasets/ISIC2019LT/download_ISIC2019.sh

# ISIC Archive
bash ./prepare_datasets/ISIC_Archive/download_isic_archive.sh
python ./prepare_datasets/ISIC_Archive/merge.py

Stage 1 - Multi-view Relation-aware Consistency

The first-stage training with the MRC module. The model weights will be saved to './checkpoints'.

python stage1.py
  • If you are going to use the wandb to log the training process, please replace wandb.login(key="[Your wandb key here]") with your own key.

Stage 2 - Virtual Feature Compensation

The second-stage training with the VFC module.

python stage2.py

Citation

@inproceedings{pan2023combat,
  title={Combat Long-Tails in Medical Classification with Relation-Aware Consistency and Virtual Features Compensation},
  author={Pan, Li and Zhang, Yupei and Yang, Qiushi and Li, Tan and Chen, Zhen},
  booktitle={International Conference on Medical Image Computing and Computer-Assisted Intervention},
  pages={14--23},
  year={2023},
  organization={Springer}
}

mrc_vfc's People

Contributors

peterlipan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

alyato

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.