Giter VIP home page Giter VIP logo

segvol's Introduction

SegVol: Universal and Interactive Volumetric Medical Image Segmentation

This repo is the official implementation of SegVol: Universal and Interactive Volumetric Medical Image Segmentation.

NewsπŸš€

(2023.11.27) Experiment results and usage of ViT pre-training are comming soon.

(2023.11.24) You can download weight files of SegVol and ViT(CTs pre-train) here. πŸ”₯

(2023.11.23) The brief introduction and instruction have been uploaded.

(2023.11.23) The inference demo code has been uploaded.

(2023.11.22) The first edition of our paper has been uploaded to arXiv. πŸ“ƒ

Introduction

The SegVol is a universal and interactive model for volumetric medical image segmentation. SegVol accepts point, box and text prompt while output volumetric segmentation. By training on 90k unlabeled Computed Tomography (CT) volumes and 6k labeled CTs, this foundation model supports the segmentation of over 200 anatomical categories.

We will release SegVol's inference code, training code, model params and ViT pre-training params (pre-training is performed over 2,000 epochs on 96k CTs).

Usage

Requirements

The pytorch v1.11.0 (or higher version) is needed first. Following install key requirements using commands:

pip install 'monai[all]==0.9.0'
pip install einops==0.6.1
pip install transformers==4.18.0
pip install matplotlib

Config and run demo script

  1. You can download the demo case here, or download the whole demo dataset AbdomenCT-1K and choose any demo case you want.

  2. Please set CT path and Ground Truth path of the case in the config_demo.json.

  3. After that, config the inference_demo.sh file for execution:

    • $segvol_ckpt: the path of SegVol's checkpoint (Download from here).

    • $work_dir: any path of folder you want to save the log files and visualizaion results.

  4. Finally, you can control the prompt type, zoom-in-zoom-out mechanism and visualizaion switch here.

  5. Now, just run bash script/inference_demo.sh to infer your demo case.

Citation

If you find this repository helpful, please consider citing:

@article{du2023segvol,
  title={SegVol: Universal and Interactive Volumetric Medical Image Segmentation},
  author={Du, Yuxin and Bai, Fan and Huang, Tiejun and Zhao, Bo},
  journal={arXiv preprint arXiv:2311.13385},
  year={2023}
}

Acknowledgement

Thanks for the following amazing works:

HuggingFace.

CLIP.

MONAI.

Image by brgfx on Freepik.

Image by muammark on Freepik.

Image by pch.vector on Freepik.

Image by starline on Freepik.

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.