The Deep Learning Image Classifier AI Webapp is a web application that uses a deep learning model to classify images into various categories. This project leverages a ResNet50 neural network, pre-trained on the ImageNet dataset, to accurately identify and classify images. The system recognises the object in an image uploaded by the user.
copyright @navidbinahmed 2023
- Project Overview
- Tools and Tech Used
- Features
- Steps for Implementation
- Installation
- Usage
- Demo
- How to Contribute
- License
- Contact
- Jupyter Notebook & Anaconda
- VS Code
- Docker/WSL 2
- GitHub/Git CLI
- Python v3.9
- Flask
- HTML/CSS
- TensorFlow: For deep learning model creation and training.
- Keras: High-level neural networks API.
- Image Upload: Users can upload images for classification.
- Real-time Predictions: Get instant predictions on uploaded images.
- Visual Feedback: Display of the classified category along with confidence scores.
- User-Friendly Interface: Simple and intuitive UI.
-
Created a new conda environment (imageclassifier)
-
Downloaded dataset
-
Model Building i. Preprocessing data ii. EDA/ feature engineering iii. Model building iv. Saved model as a .h5 file
-
Customized app building using Flask
-
Install Docker Desktop with supporting tools (WSL 2)
-
Pushed the repo to Git CLI (and Docker) i. Configuaration commands:
``` git config --global user.name (Navid Bin Ahmed) ``` ``` git config --global user.email (******) ```
ii. used commands:
``` git add <file name> git add . (adds all files) ``` ``` git commit -m "message" ``` ``` git push origin <branch name> master or main ``` ``` git status ```
To get a local copy up and running, follow these simple steps.
- Python 3.x
- Virtual environment (recommended)
-
Clone the Repository
git clone https://github.com/NavidBinAhmed/Webapp_Deep_Learning_Image_Classifier.git cd Webapp_Deep_Learning_Image_Classifier
-
Create and Activate a Virtual Environment
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Required Packages
pip install -r requirements.txt
-
Run the Application
python app.py
- Navigate to
http://127.0.0.1:5000/
in your web browser. - Upload an image using the provided interface.
- Click the "Predict" button to get the classification result.
- The application will display the predicted category along with the confidence score.
Check out the live demo of the application here.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
- Email: [email protected]