This project is a web application that uses deep learning to classify car images. Users can upload photos of cars, and the system will identify the car model using a pre-trained ResNet50 model.
- Real-time car image upload and preview
- Instant car model prediction
- User-friendly interface
- Responsive design for all devices
- Frontend:
- HTML5
- CSS3
- JavaScript
- Backend:
- Python
- Flask
- Machine Learning:
- PyTorch
- Pre-trained ResNet50 model
deep-learning-project/
├── app.py
├── static/
│ ├── js/
│ │ └── deepcars.js # JavaScript functions
│ ├── css/
│ │ └── style.css # Styling
│ └── imgs/ # Static images
├── templates/
│ └── deepCars.html # Main HTML template
├── requirements.txt # List of dependencies
Follow the steps below to set up the project:
-
Clone the repository:
git clone https://github.com/AhmedFathyElrefaey/Car-Classification-Brand.git cd Car-Classification-Brand-main -
Create a virtual environment (optional but recommended):
python -m venv venv
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
python app.py
-
Open your browser and navigate to:
http://localhost:5000
Ensure that the paths in the app.py file match your local environment:
train_path: Path to the training dataset.valid_path: Path to the validation dataset.
- Open the application in your web browser.
- Click on the upload button or drag and drop a car image.
- Wait for the model to process the image.
- View the prediction results.
Enjoy using the Car Classification application!