Skip to content

U-Net based deep learning model for the purpose of segmenting tooth images.

License

Notifications You must be signed in to change notification settings

AhKose/Dental_Segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tooth Image Segmentation Using U-Net


Overview

This repository contains the implementation of a U-Net-based deep learning model to segment tooth images. U-Net is a convolutional neural network that excels in biomedical image segmentation tasks. This project demonstrates the entire pipeline from data preprocessing to model training and evaluation.

Features

Data Preprocessing: Load and preprocess images and masks. U-Net Model: Implement the U-Net architecture for segmentation. Training and Evaluation: Train the model on tooth images and evaluate its performance, visualize the original, masked, and predicted segmented images.

Project Structure

data_preprocessing.py: Contains functions for loading and preprocessing the images and masks. model_1.py: Defines the U-Net architecture.(First model for simple tasks) model_2.py: Defines the U-Net architecture.(Second model for more complex tasks with more advanced design) train.py: Contains the training loop for the model, evaluating and visualizing the model's performance.

Usage

Data Source This project utilizes the Tufts Dental Database, available on Kaggle: Tufts Dental Database[https://www.kaggle.com/datasets/deepologylab/tufts-dental-database]. Before running the project, please download this dataset and ensure the paths in the train_evaluate.py file are correctly set to where you've stored the data.

To define the 1st model, execute the following command (To use the second model, the number can be adjusted to 2 for the complex model):

python model_1.py

To evaluate the model and visualize the results, run:

python train_evaluate.py

Dependencies

  • TensorFlow
  • NumPy
  • scikit-learn
  • PIL
  • matplotlib

Results

image image image

About

U-Net based deep learning model for the purpose of segmenting tooth images.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages