π Quick Start Guide
Option 1: Local Setup
Prerequisites
- Python 3.8+
- Git
Steps
Clone the repository
git clone https://github.com/AhmedAl-Mahdi/Aircraft-Classifier.git cd Aircraft-ClassifierRun setup script
python setup.pyTrain the model (optional)
jupyter notebook aircraft_classifier.ipynbFollow the notebook to train and save the model.
Launch Gradio interface
python app.pyOpen browser Navigate to
http://localhost:7860
Option 2: Docker Deployment
Prerequisites
- Docker installed
Steps
Clone and build
git clone https://github.com/AhmedAl-Mahdi/Aircraft-Classifier.git cd Aircraft-Classifier docker build -t aircraft-classifier .Run container
docker run -p 7860:7860 aircraft-classifierAccess application Open
http://localhost:7860in your browser
Option 3: Cloud Deployment
Hugging Face Spaces
- Fork this repository
- Create a new Space on Hugging Face
- Link your forked repository
- The app will deploy automatically
Google Colab
- Open the notebook in Colab
- Add
!python app.pyin a new cell - Use ngrok for public access
Troubleshooting
Common Issues
Model not found error:
- Train the model using the Jupyter notebook
- Or run with random weights for demo
Memory issues:
- Use CPU mode: Set
device = 'cpu'in app.py - Reduce batch size in training
Port already in use:
- Change port in app.py:
server_port=7861
Dependencies issues:
- Update pip:
pip install --upgrade pip - Install requirements:
pip install -r requirements.txt
Support
- π Check the main README.md for detailed documentation
- π Report issues on GitHub
- π‘ Feature requests welcome!