[MedIA2021]MIDeepSeg: Minimally Interactive Segmentation of Unseen Objects from Medical Images Using Deep Learning

Overview

MIDeepSeg: Minimally Interactive Segmentation of Unseen Objects from Medical Images Using Deep Learning [MedIA or Arxiv] and [Demo]

This repository proivdes a 2D medical image interactive segmentation method for segmentation and annotation. image

  • This project was originally developed for our previous work MIDeepSeg, if you find it's useful for your research, please consider to cite the followings:

      @article{luo2021mideepseg,
                title={MIDeepSeg: Minimally interactive segmentation of unseen objects from medical images using deep learning},
                author={Luo, Xiangde and Wang, Guotai and Song, Tao and Zhang, Jingyang and Aertsen, Michael and Deprest, Jan and Ourselin, Sebastien and Vercauteren, Tom and Zhang, Shaoting},
                journal={Medical Image Analysis},
                volume={72},
                pages={102102},
                year={2021},
                publisher={Elsevier}}
    

2D example A visualization comparison of different distance transform methods, following GeodisTK.

Requirements

Before you can use this package for image segmentation. You should:

  • PyTorch version >=1.0.1
  • Some common python packages such as Numpy, Pandas, SimpleITK,OpenCV, pyqt5, scipy......
  • Install the GeodisTK for geodesic distance transformation.
  • Install the SimpleCRF for interactive refinement.

How to use

1, compile the requirement library:

pip install -r requirements.txt
  1. launch the GUI
cd mideepseg
python main.py
  1. load an image for segmentation. Once the image is loaded, Firstly, give some edge points by left mouse to get an initial interactions, click the Segmentation button to obtain an initial segmentation. Then, press left mouse button to give clicks in under-segmented regions, and press right mouse button to give clicks in over-segmented region. Then click the Refinement button, and the segmentation will be updated according to the interactions.

  2. Note that, the pretrained model is only trained with placenta MR-T2 data.

Acknowledgment and Statement

  • This project was designed for academic research, not for clinical or commercial use, as it's a protected patent. If you want to use it for commercial, please contact Prof. Guotai Wang.
Comments
  • AttributeError: module 'maxflow' has no attribute 'maxflow2d'

    AttributeError: module 'maxflow' has no attribute 'maxflow2d'

    Hi, Thank you for your time. When I ran the code, the UI is appeared and there is no problem setting the seed point. but when I clicked the button of segment, an error occurred:

    Traceback (most recent call last): File "G:\label_sys\MIDeepSeg-master\MIDeepSeg-master\mideepseg\gui.py", line 191, in on_segment self.graph_maker.extreme_segmentation() File "G:\label_sys\MIDeepSeg-master\MIDeepSeg-master\mideepseg\controler.py", line 182, in extreme_segmentation fix_predict = maxflow.maxflow2d(zoomed_img.astype( AttributeError: module 'maxflow' has no attribute 'maxflow2d'

    Is there any module that can replace maxflow?Looking forward to your reply, Thank you very much!

    opened by Z-TIANQI 4
  • cant‘t find the open source of  BIFSeg

    cant‘t find the open source of BIFSeg

    Hi, Thank you for your time. Recently, I have read the paper of your lab about BIFseg and am very interested in this work. However, I can't open the code link in paper. I am wondering if you can send this work to me or fix the link on your website. Looking forward to your reply, Thank you very much!

    opened by NieXiuping 3
  • 3D medical image interactive segmentation interface?

    3D medical image interactive segmentation interface?

    Hello, thanks for opening source nice work.

    For 2D interactive segmentation, you offer the UI for user interaction. What about 3D medical image interactive segmentation? Is there any UI or App to check as what we see in the demo? BTW, for 2D and 3D interactive segmentation, are they using the same trained model?

    opened by yangshunDragon 3
  • some problems caused by shadow copy probably

    some problems caused by shadow copy probably

    Hi, Luo. I have some questions about your code: in controller.py : 192 self.initial_seg = pred 194 pred[pred >= 0.5] = 1 195 pred[pred < 0.5] = 0 self.initial_seg may store the references of pred,which seems to be very crucial in the refinement stage .In your code, you change pred in the sebsequent lines.I use np.array in order to get a copy of pred.Is that right?

    opened by yeyeyeping 1
  • OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

    OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

    After installing all the packages and running python main.py, I got the following error: "OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized. error."

    I managed to fix it by installing the nomkl package (eg. conda install nomkl). Maybe it should be added to the requirements file if others also have the same issue.

    opened by danielkovacsdeak 1
  • how to use MIDeepSeg to segment 3D tumors?

    how to use MIDeepSeg to segment 3D tumors?

    I'm very interested in your work. I want to know how to use MIDeepSeg to segment 3D tumors? As you posted on YouTube, can you share the code? Thank you very much. [email protected]

    opened by Learnshui 1
Owner
Healthcare Intelligence Laboratory
Healthcare Intelligence Laboratory
The implementation of the algorithm in the paper "Safe Deep Semi-Supervised Learning for Unseen-Class Unlabeled Data" published in ICML 2020.

DS3L This is the code for paper "Safe Deep Semi-Supervised Learning for Unseen-Class Unlabeled Data" published in ICML 2020. Setups The code is implem

Guolz 36 Oct 19, 2022
Codes of paper "Unseen Object Amodal Instance Segmentation via Hierarchical Occlusion Modeling"

Unseen Object Amodal Instance Segmentation (UOAIS) Seunghyeok Back, Joosoon Lee, Taewon Kim, Sangjun Noh, Raeyoung Kang, Seongho Bak, Kyoobin Lee This

GIST-AILAB 92 Dec 13, 2022
The Medical Detection Toolkit contains 2D + 3D implementations of prevalent object detectors such as Mask R-CNN, Retina Net, Retina U-Net, as well as a training and inference framework focused on dealing with medical images.

The Medical Detection Toolkit contains 2D + 3D implementations of prevalent object detectors such as Mask R-CNN, Retina Net, Retina U-Net, as well as a training and inference framework focused on dealing with medical images.

MIC-DKFZ 1.2k Jan 4, 2023
An image base contains 490 images for learning (400 cars and 90 boats), and another 21 images for testingAn image base contains 490 images for learning (400 cars and 90 boats), and another 21 images for testing

SVM Données Une base d’images contient 490 images pour l’apprentissage (400 voitures et 90 bateaux), et encore 21 images pour fait des tests. Prétrait

Achraf Rahouti 3 Nov 30, 2021
Pytorch Code for "Medical Transformer: Gated Axial-Attention for Medical Image Segmentation"

Medical-Transformer Pytorch Code for the paper "Medical Transformer: Gated Axial-Attention for Medical Image Segmentation" About this repo: This repo

Jeya Maria Jose 615 Dec 25, 2022
Context Axial Reverse Attention Network for Small Medical Objects Segmentation

CaraNet: Context Axial Reverse Attention Network for Small Medical Objects Segmentation This repository contains the implementation of a novel attenti

null 401 Dec 23, 2022
Code for Parameter Prediction for Unseen Deep Architectures (NeurIPS 2021)

Parameter Prediction for Unseen Deep Architectures (NeurIPS 2021) authors: Boris Knyazev, Michal Drozdzal, Graham Taylor, Adriana Romero-Soriano Overv

Facebook Research 462 Jan 3, 2023
ImageNet-CoG is a benchmark for concept generalization. It provides a full evaluation framework for pre-trained visual representations which measure how well they generalize to unseen concepts.

The ImageNet-CoG Benchmark Project Website Paper (arXiv) Code repository for the ImageNet-CoG Benchmark introduced in the paper "Concept Generalizatio

NAVER 23 Oct 9, 2022
YOLTv5 rapidly detects objects in arbitrarily large aerial or satellite images that far exceed the ~600×600 pixel size typically ingested by deep learning object detection frameworks

YOLTv5 rapidly detects objects in arbitrarily large aerial or satellite images that far exceed the ~600×600 pixel size typically ingested by deep learning object detection frameworks.

Adam Van Etten 145 Jan 1, 2023
Build a medical knowledge graph based on Unified Language Medical System (UMLS)

UMLS-Graph Build a medical knowledge graph based on Unified Language Medical System (UMLS) Requisite Install MySQL Server 5.6 and import UMLS data int

Donghua Chen 6 Dec 25, 2022
Shape-aware Semi-supervised 3D Semantic Segmentation for Medical Images

SASSnet Code for paper: Shape-aware Semi-supervised 3D Semantic Segmentation for Medical Images(MICCAI 2020) Our code is origin from UA-MT You can fin

klein 125 Jan 3, 2023
A pytorch-based deep learning framework for multi-modal 2D/3D medical image segmentation

A 3D multi-modal medical image segmentation library in PyTorch We strongly believe in open and reproducible deep learning research. Our goal is to imp

Adaloglou Nikolas 1.2k Dec 27, 2022
Multi-atlas segmentation (MAS) is a promising framework for medical image segmentation

Multi-atlas segmentation (MAS) is a promising framework for medical image segmentation. Generally, MAS methods register multiple atlases, i.e., medical images with corresponding labels, to a target image;

NanYoMy 13 Oct 9, 2022
Official PyTorch implementation for paper Context Matters: Graph-based Self-supervised Representation Learning for Medical Images

Context Matters: Graph-based Self-supervised Representation Learning for Medical Images Official PyTorch implementation for paper Context Matters: Gra

null 49 Nov 23, 2022
Doods2 - API for detecting objects in images and video streams using Tensorflow

DOODS2 - Return of DOODS Dedicated Open Object Detection Service - Yes, it's a b

Zach 101 Jan 4, 2023
Medical Image Segmentation using Squeeze-and-Expansion Transformers

Medical Image Segmentation using Squeeze-and-Expansion Transformers Introduction This repository contains the code of the IJCAI'2021 paper 'Medical Im

askerlee 172 Dec 20, 2022
Copy Paste positive polyp using poisson image blending for medical image segmentation

Copy Paste positive polyp using poisson image blending for medical image segmentation According poisson image blending I've completely used it for bio

Phạm Vũ Hùng 2 Oct 19, 2021
[CVPR'21] FedDG: Federated Domain Generalization on Medical Image Segmentation via Episodic Learning in Continuous Frequency Space

FedDG: Federated Domain Generalization on Medical Image Segmentation via Episodic Learning in Continuous Frequency Space by Quande Liu, Cheng Chen, Ji

Quande Liu 178 Jan 6, 2023
Semi Supervised Learning for Medical Image Segmentation, a collection of literature reviews and code implementations.

Semi-supervised-learning-for-medical-image-segmentation. Recently, semi-supervised image segmentation has become a hot topic in medical image computin

Healthcare Intelligence Laboratory 1.3k Jan 3, 2023