Giter Site home page Giter Site logo

msc_dissertation's Introduction

MSc Disseartation

This is the repository for my MSc dissertation

Setup

Please put the images in the corresponding folders.

  • Testing: Mask images for testing. The name format should look like "image-0-srf-grader1-1.png"
  • Valid_Raw: Raw images for testing. The name format should look like "image-0.png"
  • Training: Mask images for training. The name format should look like "image-0-srf-grader1-1.png"
  • Train_Raw: Raw images for training. The name format should look like "image-0.png"

Runing

  • Use constants.py to change different setting such as enabling/disabling augmentation. The augmentation is turned off in default. Please turn it on to obtain the best result (but this would increase the training time significantly).
  • Use unet.py to test different models. The basic model corresponds to get_unet_shallow() in our study. The nested model corresponds to get_unet_inner(). The original U-net model corresponds to get_unet().
  • Use loss.py to test different loss function. The best loss function is weighted_bce_dice_loss().
    To run the model, use python3 main.py.

Testing the model using public available dataset.

  • We have tested our model configuration using public available dataset.
  • Please download it following this and put the data into ultrasound-nerve-segmentation folder. Note that since the masks for testing images are not provided by the data provider. Train/valid/test split is done using training images only.
  • Modify constants.py file to change the image_rows and image_cols to 420, 580 respectively. And change img_row, img_cols to 96, 128 respectively.
  • Run data_new.py to read the image data into npy file.
  • Then run train_new.py to train using ultrasound nerve segmentation data.

msc_dissertation's People

Contributors

fair95 avatar

Watchers

James Cloos avatar

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.