Skip to content

This project implements an image classification pipeline using deep learning techniques for X-ray analysis, with a focus on medical image interpretation such as detecting COVID-19. The pipeline supports model training, evaluation, and visualization using a variety of deep learning frameworks.

License

Notifications You must be signed in to change notification settings

TamerOnLine/img-classifier

Repository files navigation

img-classifier

Python MIT License

Table of Contents

Project Overview

A streamlined image classification pipeline designed for analyzing and classifying images using deep learning techniques. This project focuses on building and deploying an effective image classification model with customizable dataset paths. The primary use case is detecting COVID-19 cases from X-ray images, but the structure can be adapted for various image classification problems.

Features

  • Efficient setup for training and testing datasets.
  • Suppression of unnecessary warnings for a cleaner output.
  • Structured for easy integration with other image datasets.
  • Customizable for various image classification use cases.
  • Advanced model architectures support like ResNet, InceptionNet, etc.

Project Structure

img-classifier/
├── data/                        # Contains training and testing datasets
├── notebooks/                   # Jupyter notebooks for experimentation
├── models/                      # Pre-trained models and custom models
├── image_classification_pipeline.ipynb  # Main pipeline notebook
├── README.md                    # Project documentation
└── .gitignore                   # Git ignore file

Setup

  1. Clone the repository:

    git clone https://github.com/TamerOnLine/img-classifier.git
  2. Navigate to the project directory:

    cd img-classifier
  3. Install the required libraries:

    pip install -r requirements.txt

Example Usage

Once you have set up the environment and installed the required libraries, you can run the following code snippet to test the model on a new image:

from keras.models import load_model
from keras.preprocessing import image
import numpy as np

# Load the trained model
model = load_model('models/covid_classifier.h5')

# Load and preprocess the image
img = image.load_img('path_to_image.jpg', target_size=(224, 224))
img = image.img_to_array(img)
img = np.expand_dims(img, axis=0)

# Predict on the new image
prediction = model.predict(img)
print(f"Predicted class: {prediction}")

GitHub Repository

Explore the project on GitHub

About

This project implements an image classification pipeline using deep learning techniques for X-ray analysis, with a focus on medical image interpretation such as detecting COVID-19. The pipeline supports model training, evaluation, and visualization using a variety of deep learning frameworks.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published