Giter Site home page Giter Site logo

teeth-segmentation's Introduction

Teeth Segmentation

Teeth segmentation using Pytorch and Monai. The data used belong to the Tufts Dental Database.

Data split

The Thfts dataset is composed by 1000 images in total which were randomly divided as 70-20-10% in training, validation, and test set. The split is done by:

pyhton data_split.py

which save the dataset lists in the data.json file. It stores also the class names and the class weights for the segmentation.

Model

Simple UNet network created using monai.netowrks.

Training

pthon train.py -md "<model_directory>" -d "mps" -g 0 -bs 16 -lr 1.e-4 -ne 100

This scripts runs the training scrits. It:

  • saves the best model at the specified "<model_directory>",
  • uses the device "mps" (but you can use "cuda" or "cpu")
  • GPU at position 0,
  • batch size 16,
  • learning rate 1.e-4,
  • 100 number of maximum epochs.

Evaluation

pthon evaluation.py -md "<model_directory>" -d "mps" -g 0 -bs 1 

This script computes evaluation over the training, validation, and test dataset saving the dice score per each image in the file evaluation_results.csv.

GUI

pthon gui.py

This scripts runs a simple GUI where the user can upload an image, visualize the model's segmentation prediction, and, in case, save it.

teeth-segmentation's People

Contributors

mdciri avatar

Stargazers

 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.