Giter VIP home page Giter VIP logo

scribformer's Introduction

ScribFormer [TMI 2024]

This repository is the official implementation of the paper ScribFormer: Transformer Makes CNN Work Better for Scribble-based Medical Image Segmentation. Arxiv, ResearchGate, IEEEXplore

Datasets

ACDC

  1. The ACDC dataset with mask annotations can be downloaded from ACDC.
  2. The scribble annotations of ACDC have been released in ACDC scribbles.
  3. The pre-processed ACDC data used for training could be directly downloaded from ACDC_dataset.

MSCMR

  1. The MSCMR dataset with mask annotations can be downloaded from MSCMRseg.
  2. The scribble annotations of MSCMRseg have been released in MSCMR_scribbles.
  3. The scribble-annotated MSCMR dataset used for training could be directly downloaded from MSCMR_dataset.

Requirements

Some important required packages include:

  • Python 3.8
  • CUDA 11.3
  • Pytorch 1.10.1.
  • torchvision 0.11.2
  • Some basic python packages such as Numpy, Scikit-image, SimpleITK, Scipy ......

Follow official guidance to install Pytorch.

Training

To train the model, run this command:

python train.py --root_path <dataset_path> --exp <path_to_save_model> --bilinear --linear_layer --fold MAAGfold --max_epoches 200 --weight_cam_subloss 0.25 0.5 0.75 1 --weight_cam 0.1

Evaluation

To evaluate the model, run this command:

python test.py --bilinear --linear_layer --fold MAAGfold --exp <path_to_save_model> --save_prediction

Citation

@article{li2023lvit,
  title={ScribFormer: Transformer Makes CNN Work Better for Scribble-based Medical Image Segmentation},
  author={Li, Zihan and Zheng, Yuan and Shan, Dandan and Yang, Shuzhou and Li, Qingde and Wang, Beizhan and Hong, Qingqi and Shen, Dinggang},
  journal={IEEE Transactions on Medical Imaging},
  year={2024},
  publisher={IEEE}
}

scribformer's People

Contributors

huanglizi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

scribformer's Issues

test problem

Hello, during testing, I encountered a sit k:: Error: The file "../data/ACDC_training/patient005_frame01. ni. gz" does not exist. Why is this error

dataset

How will the acdc dataset be organized

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.