Giter Club home page Giter Club logo

vertebrartistry's Introduction

Vertebras_Landmarking_using_Resnet

This project focuses on the task of marking keypoints on each vertebra, specifically the IL (Left Inferior), IR (Right Inferior), SL (Left Superior), and SR (Right Superior) points. The dataset comprises both scoliosis and normal vertebrae images. Each image is associated with a label file, with a total of 480 training images and 120 test images. The image files have a ".jpg" extension, while the label files use the ".mat" extension. Data augmentation techniques, such as resizing, random brightness/contrast adjustments, sharpening, adding multiplicative noise, image inversion, and vertical flipping, have been applied to augment the training data, increasing it to 2880 samples.

Data Preprocessing

Before training the model, the data undergoes preprocessing, which involves the following steps:

Conversion of RGB images to grayscale.

Equalization of image intensities.

Noise reduction.

Normalization of images.

The preprocessed data is then serialized into a pickle file for efficient storage and retrieval.

Hyperparameter Optimization

Bayesian optimization is applied to find optimal hyperparameters for training the model. The hyperparameters optimized include:

Optimizer choice.

Batch size.

Number of epochs.

Loss function.

Model Architecture

The model used for this project is ResNet-101, a deep neural network architecture known for its excellent performance on various computer vision tasks.

Overfitting Prevention

To prevent overfitting during training, early stopping is implemented, allowing the model to halt training when it no longer improves on the validation set.

Deployment

The trained model is deployed using Tkinter, a Python GUI library. The deployed application allows users to upload images, process them, and make predictions regarding the keypoints on vertebrae.

How to Run the Test File

To run the test file, execute the following command:

python3 TestScoliosisModel.py

Requirements

Before running the project, make sure to install the required Python packages:

pip install tensorflow
pip install tkinter

Please ensure that you have these packages installed to run the project successfully.

Feel free to explore the code and make improvements as needed. If you have any questions or encounter issues, don't hesitate to reach out. Happy coding!

vertebrartistry's People

Contributors

tsameema avatar

Watchers

 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.