Giter VIP home page Giter VIP logo

thyroid_segmentation's Introduction

Thyroid Nodule Segmentation

This repository contains code and models to segment thyroid nodules in ultrasound images. Dataset used: Open-CAS Ultrasound Dataset

Installation

The main code is written as a Python package named 'tnseg'. After cloning this repository to your machine, install with:

cd cloned/path
pip install .

You should then be able to use the package in Python:

import matplotlib.pyplot as plt
from tnseg import dataset, models, loss, opts, evaluate

Running models

Scripts for model training and evaluation are located under /scripts/.

python -u scripts/train.py config_files/defaults.config

On running the model, the outputs are saved in the outputs/ folder, in a folder named with the experiment name (this should be specified in the config file). The outputs include the following:

  1. weights/ : Weights saved during the training.
  2. results/ : The error and accuracy plots, validation dice coefficients
  3. predictions/ : Predicted annotation maps of all the validation folders

Note: In this project, the dataset contains 16 folders. Due to the limited nature of the dataset, we trained 8 models (14 train and 2 validation), and obtained the validation dice coefficients of all the folders.

Note: this package is written with the Tensorflow backend in mind -- (batch, height, width, channels) ordered is assumed and is not portable to Theano.

Models

The implemented models are:

  1. UNet
  2. Window UNet
  3. Dilated UNet
  4. Dilated Densenet

thyroid_segmentation's People

Contributors

suryatejadev avatar

Watchers

 avatar  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.