# ๐Ÿš€ Quick Start Guide ## โšก Get Running in 5 Minutes ### 1. **Prerequisites Check** - โœ… Python 3.8+ installed - โœ… Model file `resnet50_dr_classifier.pth` present - โœ… Internet connection (for first-time package installation) ### 2. **Easy Setup (Windows)** ```bash # Option A: Double-click the batch file run_app.bat # Option B: Use PowerShell .\run_app.ps1 # Option C: Use PowerShell with setup .\run_app.ps1 -Setup ``` ### 3. **Manual Setup (All Platforms)** ```bash # Create virtual environment (recommended) python -m venv venv # Activate virtual environment # Windows: venv\Scripts\activate # macOS/Linux: source venv/bin/activate # Install dependencies pip install -r requirements.txt # Test the setup python test_model.py # Run the app python app.py ``` ### 4. **What Happens Next** - ๐ŸŒ Web interface opens at `http://127.0.0.1:7860` - ๐Ÿ“ Upload OCT images for analysis - ๐Ÿค– AI classifies images as DR or NoDR - ๐Ÿ”ฅ Grad-CAM heatmap shows AI focus areas - ๐Ÿ’พ Results automatically saved to `saved_predictions/` folder ## ๐ŸŽฏ Usage Examples ### **Single Image Analysis** 1. Open `http://127.0.0.1:7860` in your browser 2. Upload an OCT image 3. View results and Grad-CAM visualization ### **Batch Processing** ```bash python batch_process.py ``` - Process multiple images at once - Get CSV report with all results - Grad-CAM images saved to `batch_results/` folder ### **Testing & Validation** ```bash python test_model.py ``` - Verify model loading - Test basic functionality - Check all dependencies ## ๐Ÿ”ง Troubleshooting ### **Common Issues** | Problem | Solution | |---------|----------| | "Model file not found" | Ensure `resnet50_dr_classifier.pth` is in the project folder | | "Package not found" | Run `pip install -r requirements.txt` | | "CUDA errors" | App runs on CPU by default. GPU not required | | "Port already in use" | Change port in `config.py` or kill existing process | ### **Get Help** - Run `python setup.py` for comprehensive setup - Check `README.md` for detailed documentation - Use `python test_model.py` to diagnose issues ## ๐Ÿ“ Project Structure ``` Deep_Learning_for_Ophthalmologist/ โ”œโ”€โ”€ app.py # ๐ŸŒ Main web application โ”œโ”€โ”€ batch_process.py # ๐Ÿ”„ Batch processing script โ”œโ”€โ”€ test_model.py # ๐Ÿงช Testing and validation โ”œโ”€โ”€ setup.py # โš™๏ธ Automated setup โ”œโ”€โ”€ config.py # ๐Ÿ”ง Configuration settings โ”œโ”€โ”€ requirements.txt # ๐Ÿ“ฆ Python dependencies โ”œโ”€โ”€ resnet50_dr_classifier.pth # ๐Ÿค– AI model weights โ”œโ”€โ”€ run_app.bat # ๐ŸชŸ Windows batch launcher โ”œโ”€โ”€ run_app.ps1 # ๐ŸชŸ Windows PowerShell launcher โ”œโ”€โ”€ README.md # ๐Ÿ“š Complete documentation โ”œโ”€โ”€ QUICK_START.md # ๐Ÿš€ This quick start guide โ”œโ”€โ”€ saved_predictions/ # ๐Ÿ’พ Single image results โ””โ”€โ”€ batch_results/ # ๐Ÿ“Š Batch processing results ``` ## ๐ŸŽ‰ You're Ready! Your AI-powered diabetic retinopathy detection app is now ready to use! **Next steps:** 1. ๐Ÿ–ฑ๏ธ Double-click `run_app.bat` (Windows) or run `python app.py` 2. ๐ŸŒ Open your web browser to the displayed URL 3. ๐Ÿ“ Upload OCT images for analysis 4. ๐Ÿ”ฌ Explore the Grad-CAM visualizations 5. ๐Ÿ“Š Use batch processing for multiple images **Remember:** This tool is for research and educational purposes. Always consult healthcare professionals for medical diagnosis. --- *Need help? Check the full `README.md` or run `python setup.py` for detailed assistance.*