Giter Site home page Giter Site logo

alzheimer-classification's Introduction

Stage of Alzheimer's classification

The purpose of this project is to detect the stage of Alzheimer's based on MRI images.

Dataset

The models are designed to be trained on Alzheimer's Dataset ( 4 class of Images) from Kaggle. It has already been downloaded and is available in the dataset/ directory.

Train Dataset Test Dataset

Usage

Requirements

  • Python 3.9+
  • Poetry

Installing requirements

poetry install

Training a model

python train.py -m vgg16 -f model_filename
    -m/--model_name: Name of the model to train (vgg16 or cnn).
    -f/--filename: Filename to save the trained model.

Predicting with a model

python predict.py -m vgg16 -f model_filename -i ../dataset/test/ModerateDemented/27.jpg
    -m/--model_name: Name of the model to use for prediction (vgg16 or cnn).
    -f/--filename: Filename of the trained model.
    -i/--image_path: Path to the image file to predict.

Tensorboard

To view all metrics collected during model training, run:

tensorboard --logdir ../lightning_logs

Development

Pre-commits

Install pre-commits https://pre-commit.com/#installation

If you are using VS-code install the extension https://marketplace.visualstudio.com/items?itemName=MarkLarah.pre-commit-vscode

To make a dry-run of the pre-commits, to see if your code passes, run:

pre-commit run --all-files

Adding python packages

Dependencies are handled by poetry framework, to add new a new dependency, run:

poetry add <package_name>

alzheimer-classification's People

Contributors

s24575 avatar

Stargazers

Barbara Klaudel 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.