This project demonstrates stone segmentation using a U-Net model. The goal is to segment stones from images, including handling cases where stones are closely packed. The project is implemented in Google Colab.
- Dataset: 20 diverse images of stones.
- Approach: U-Net model for image segmentation.
- Techniques Used:
- Normalization and preprocessing
- Data augmentation (horizontal/vertical flips, random brightness, Gaussian blurring, rotations)
- Model training and fine-tuning
- Evaluation using Intersection over Union (IoU) metrics
To run this project, open the provided Google Colab notebook:
-
Clone the Repository:
git clone https://raw.githubusercontent.com/VM-Janani/Stone-Segmentation/main/dentinocemental/Stone-Segmentation.zip
Navigate to the project directory:
cd stone-segmentation -
Open Google Colab Notebook: Upload the
https://raw.githubusercontent.com/VM-Janani/Stone-Segmentation/main/dentinocemental/Stone-Segmentation.zipnotebook to Google Colab. -
Setup and Dependencies: In the Colab notebook, run the following cells to install necessary libraries and configure the environment:
!pip install tensorflow opencv-python-headless matplotlib
-
Upload Dataset: Upload your dataset images to Google Colab. Ensure the dataset is correctly referenced in the notebook.
-
Run the Notebook: Execute each cell in the notebook sequentially. The notebook contains code for:
- Loading and preprocessing data
- Building and training the U-Net model
- Evaluating the model
- Performing predictions and visualizing results
https://raw.githubusercontent.com/VM-Janani/Stone-Segmentation/main/dentinocemental/Stone-Segmentation.zip: The main notebook containing the entire workflow.
- Input: Stone images with various sizes and shapes.
- Output: Segmented images with stones identified and marked.
- Inspired by Digital Sreeni’s YouTube channel for the U-Net architecture.