GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Christinaliang/Multi-Scale-Attention: Code for our paper "Multi-scale Guided Attention for Medical Image Segmentation"

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
DataSetSample/train
DataSetSample/train
 
 
README.md
README.md
 
 
attention.py
attention.py
 
 
config.py
config.py
 
 
main.py
main.py
 
 
medicalDataLoader.py
medicalDataLoader.py
 
 
modelsResNext.py
modelsResNext.py
 
 
my_stacked_danet.py
my_stacked_danet.py
 
 
normalizeImages.py
normalizeImages.py
 
 
optimizer.py
optimizer.py
 
 
progressBar.py
progressBar.py
 
 
requirements.txt
requirements.txt
 
 
resnet.py
resnet.py
 
 
resnext101_regular.py
resnext101_regular.py
 
 
resnext_101_32x4d_.py
resnext_101_32x4d_.py
 
 
utils.py
utils.py
 
 

Repository files navigation

Medical Image Segmentation with Guided Attention

This repository contains the code of our paper:
"'Multi-scale guided attention for medical image segmentation'".

Requirements

  • The code has been written in Python (3.6) and requires pyTorch (version 1.1.0)
  • Install the dependencies using pip install -r requirements.txt

Preparing your data

You have to split your data into three folders: train/val/test. Each folder will contain two sub-folders: Img and GT, which contain the png files for the images and their corresponding ground truths. The naming of these images is important, as the code to save the results temporarily to compute the 3D DSC, for example, is sensitive to their names.

Specifically, the convention we follow for the names is as follows:

  • Subj_Xslice_Y.png where X indicates the subject number (or ID) and Y is the slice number within the whole volume. (Do not use 0 padding for numbers, i.e., the first slice should be 1 and not 01)
  • The corresponding mask must be named in the same way as the image.

An example of a sample image is added in dataset

Running the code

To run the code you simply need to use the following script:

CUDA_VISIBLE_DEVICES=0 python main.py

If you use this code for your research, please consider citing our paper:

  • A. Sinha and J. Dolz. "'Multi-scale guided attention for medical image segmentation'" Arxiv 2019.

About

Code for our paper "Multi-scale Guided Attention for Medical Image Segmentation"

arxiv.org/pdf/1906.02849.pdf

Resources

Readme
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.