Skip to main content

Intraoral photo classification with ResNet18

Project description

intraoralphoto-classifier

This repository provides a deep learning system for classifying intraoral dental photographs into five standard orthodontic viewpoints:

  • center
  • up (upper occlusal)
  • down (lower occlusal)
  • left
  • right

The project evaluates preprocessing, data augmentation strategies, multiple image resolutions, and two versions of ResNet-18 (pretrained and trained from scratch).

1. Installation

Install from PyPi:

pip install intraoralphoto-classifier

Install from source:

git clone https://github.com/AImageLab-zip/intraoralphoto-classifier
cd intraoralphoto-classifier
pip install -e .

The framework automatically uses GPU if available; otherwise CPU is used.

2. Inference

from intraoralphoto_classifier.config import get_device
from intraoralphoto_classifier.infer import run_inference

run_inference(
    patient_dir="<path_to_patient_folder>",
    model_path="<best_model.pth>",
    output_dir="<results_folder>",
    device=get_device(),
)

3. Model Weights or Checkpoints

Download the model Here: https://drive.google.com/drive/u/0/folders/1LM9fIciXma-2ak9nyRqOzRrinzIH7K0S

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

intraoralphoto_classifier-0.1.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

intraoralphoto_classifier-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file intraoralphoto_classifier-0.1.1.tar.gz.

File metadata

File hashes

Hashes for intraoralphoto_classifier-0.1.1.tar.gz
Algorithm Hash digest
SHA256 136453dbbcf065e72df6d248fa4d673e40f03c12e0ea78e357c0321ec08896b5
MD5 4f31502012b5c89e76533287a22da3f0
BLAKE2b-256 25be42b92a370b97740f2711a04b382988757c8bcf7eda183232bf51de64c7aa

See more details on using hashes here.

File details

Details for the file intraoralphoto_classifier-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for intraoralphoto_classifier-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1427d9cd7d4fa6087d4d2b5605753513891131ad5113aa288a15230f7e06ce62
MD5 a51cad05b927151bc6b1bb2d81341586
BLAKE2b-256 46d596342e50d8fb68559f50e3329d6260a8d0b2d1f8fde98bdbec9dab476fab

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