GithubHelp home page GithubHelp logo

joyce-z-cloud / attention-gate-residual-unet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goamateur/attention-gate-residual-unet

0.0 0.0 0.0 12 KB

Python implementation of U-Net in combination with attention gate (AG) for brain tumor segmentation

Python 100.00%

attention-gate-residual-unet's Introduction

Attention Gate Residual U-Net for Brain Tumor Segmentation

Implementation of U-Net in combination with attention gate (AG) for brain tumor segmentation. U-Net is also available

Environment

python = 3.6
pytorch = 1.3.1
torchvision = 0.4.2

Training

!python train.py --tag 'your tag' \
                 --batch_size 16 \
                 --data_root 'root of trainset' \
                 --log_root 'root to save logs' \
                 --backbone 'ResNet50 or VGG16'\
                 --attention 0 or 1\
                 --pretrained '(Optional) pretrained model path'

Notes

File architecture:

net/att-unet.py         Implementation of attentional U-Net
net/attention.py        Implementation of attention gate
net/unet-original.py    Implementation of original U-Net structure
net/resnet.py           Implementation of Residual Blocks
net/vgg.py              Implementation of VGG-16

utils/dataloader.py     Dataloader with on-the-fly data augmentation
utils/loss.py           Loss functions and Metrics

Train.py                Start training model
evaluation.py           Evaluate trained model

Our data augmentation schemes are implemented in ./utils/dataloader.py. The dataloader can perform on-the-fly data augmentation, but we do not actually use that. Rather, we pre-generate a augmented dataset.

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.