Spaces:
Sleeping
Sleeping
|
Download README.md from EnYa32/GrapeVineClassification: direct link, hf CLI and curl.
- Browser
- Download file 2.9 kB
-
https://huggingface.co/spaces/EnYa32/GrapeVineClassification/resolve/main/README.md
- Command line
-
hf download hf://spaces/EnYa32/GrapeVineClassification/README.md
-
curl -L -o README.md https://huggingface.co/spaces/EnYa32/GrapeVineClassification/resolve/main/README.md
2.9 kB
| title: GrapeVineClassification | |
| emoji: π | |
| colorFrom: red | |
| colorTo: red | |
| sdk: streamlit | |
| app_file: src/streamlit_app.py | |
| pinned: false | |
| short_description: Custom CNN model for grapevine leaf disease classification. | |
| license: mit | |
| # π Grapevine Leaf Disease Classifier (CNN β No Transfer Learning) | |
| This web app demonstrates a **Convolutional Neural Network (CNN) model trained from scratch (without Transfer Learning)** to classify grapevine leaf images into one of the following four disease categories: | |
| - **Black Rot** | |
| - **Esca (Black Measles)** | |
| - **Leaf Blight (Isariopsis Leaf Spot)** | |
| - **Healthy** | |
| The model was developed using **TensorFlow/Keras** and deployed via **Streamlit**. It processes images and predicts the most likely disease with a probability score. | |
| --- | |
| ## π How to Use | |
| 1. Upload a grapevine leaf image (`.jpg`, `.jpeg`, `.png`) | |
| 2. Click **"Predict Disease"** | |
| 3. The app will display: | |
| - β€ Predicted disease class | |
| - π Confidence score | |
| - π Full probability distribution across all classes | |
| --- | |
| ## π§ Model Details | |
| | **Attribute** | **Value** | | |
| |--------------------|-----------| | |
| | Model Type | CNN (no Transfer Learning) | | |
| | Input Image Size | 160 Γ 160 pixels | | |
| | Loss Function | `categorical_crossentropy` | | |
| | Optimizer | Adam | | |
| | Metrics | Accuracy, Precision, Recall | | |
| | Framework | TensorFlow / Keras | | |
| | Deployment | Streamlit with Docker (HuggingFace Spaces) | | |
| | Classes | 4 total | | |
| --- | |
| ## π File Structure | |
| βββ src/ | |
| β βββ app.py # Streamlit application | |
| βββ cnn_model.keras # Final saved model | |
| βββ grape_training_history.pkl# Training history | |
| βββ README.md # Project documentation | |
| βββ requirements.txt # Python dependencies | |
| yaml | |
| Code kopieren | |
| --- | |
| ## π οΈ Technologies Used | |
| - **Python** | |
| - **TensorFlow / Keras** | |
| - **NumPy, PIL** | |
| - **Streamlit** | |
| - **Docker (for deployment on HuggingFace)** | |
| --- | |
| ## π Example Output | |
| Predicted Disease: Esca (Black Measles) | |
| Confidence: 47.54% | |
| Probability per Class: | |
| Black Rot β 17.49% | |
| Esca (Black Measles) β 47.54% | |
| Leaf Blight β 17.49% | |
| Healthy β 17.49% | |
| yaml | |
| Code kopieren | |
| --- | |
| ## π€ Author | |
| Developed by **Enes Yamac (EnYa32)** | |
| as part of a Deep Learning project involving custom CNNs and Transfer Learning architectures for agricultural image classification. | |
| --- | |
| ## π License | |
| This project is released under the **MIT License**. | |
| --- | |
| ## π‘ Notes | |
| - This version uses a **pure CNN trained from scratch**, without any pre-trained ImageNet models. | |
| - A second version using **Transfer Learning (ResNet50)** is available as a separate Space. | |
| --- | |
| ## π Related Projects | |
| πΉ *Upcoming*: **Grapevine Disease Classifier β Transfer Learning (ResNet50)** | |
| --- | |
| β¨ *Thank you for visiting this Space!* | |
| Feel free to test the app and provide feedback. | |