Skip to main content

Detecting the stage of Alzheimer's based on MRI images.

Project description

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.11+
  • Poetry

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.

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 dependency run

poetry add <package_name>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alzheimer_classification-0.2.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alzheimer_classification-0.2.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file alzheimer_classification-0.2.0.tar.gz.

File metadata

  • Download URL: alzheimer_classification-0.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.6 Windows/10

File hashes

Hashes for alzheimer_classification-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1901dd0152d88439f2bfd4a0a5a85fe6f77cc6ae67d82ad5fe99240ffbcef27b
MD5 6a53e5aab50dc741c2b5aa4a0c78ade5
BLAKE2b-256 7b802784fa6c0426a80a2217adf412cfc49834d7ca5e4000c9743789d0608cea

See more details on using hashes here.

File details

Details for the file alzheimer_classification-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for alzheimer_classification-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39804552db4ac95760ef6d1b71ca09be042fe63c3c473ad65e77ca4e655591b8
MD5 87e7e73fdda29dd0d633c56f7121d77a
BLAKE2b-256 3e6c20b709cb77114fa0345140485df96bacb4742efb1b56f477d02bae953241

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page