OroLight is a web-based deep learning application that classifies oral histopathology images as cancerous or non-cancerous. It integrates a trained InceptionResNetV2 model within a Flask app and provides Grad-CAM visualizations for interoperability.
- Upload and classify oral histopathology images
- Uses InceptionResNetV2 for high accuracy
- Includes Grad-CAM to visualize model attention
- Fully styled UI with animations
- Training notebook with graphs and metrics
The model is trained on the Oral Cancer Dataset by ZaidPy.
Achieved 90% accuracy using transfer learning and fine-tuning.
git clone https://github.com/Jasmine5220/orolight.git
cd orolight
python -m venv venv
source venv/bin/activate # MacOS/Linux
venv\Scripts\activate # Windows
- Go to the dataset page: 🔗 https://www.kaggle.com/datasets/zaidpy/oral-cancer-dataset
- Download the zip folder of the dataset.
Run the training notebook.
This will:
- Load and preprocess images
- Train an InceptionResNetV2-based classifier
- Save the best model as
best_model.h5
inorolight
folder
After training completes:
mv best_model.h5 oral_cancer_app/model/
cd oral_cancer_app
pip install -r requirements.txt
Or manually:
pip install flask tensorflow keras opencv-python matplotlib numpy pandas
python app.py
Visit http://127.0.0.1:5000
in your browser.
Inside Tests/
, you’ll find:
real-test-1.jpg
real-test-2.jpg
These are sample images(taken in Jabalpur Medical College), you can upload via the web app to test the model.
Training and validation accuracy plotted over epochs.