Spaces:
Sleeping
Sleeping
|
Download README.md from EnYa32/Rice_Classifier_ResNet50: direct link, hf CLI and curl.
- Browser
- Download file 2.1 kB
-
https://huggingface.co/spaces/EnYa32/Rice_Classifier_ResNet50/resolve/main/README.md
- Command line
-
hf download hf://spaces/EnYa32/Rice_Classifier_ResNet50/README.md
-
curl -L -o README.md https://huggingface.co/spaces/EnYa32/Rice_Classifier_ResNet50/resolve/main/README.md
2.1 kB
A newer version of the Streamlit SDK is available: 1.67.0
metadata
title: Rice Classifier ResNet50
emoji: πΎ
colorFrom: green
colorTo: yellow
sdk: streamlit
app_file: src/streamlit_app.py
pinned: false
short_description: CNN-based rice image classifier with ResNet50.
license: mit
πΎ Rice Classification with ResNet50 (Transfer Learning)
Author: Enes Yamac
This app uses a deep learning model to classify rice grain images into different rice types.
The model is based on ResNet50 (Transfer Learning) and reaches very high accuracy.
π What does this app do?
This app can:
β
Classify rice grain images
β
Detect the rice type automatically
β
Show the predicted class with confidence
β
Use a strong AI model trained with transfer learning
π§ Model Information
- Model: ResNet50 (pre-trained on ImageNet)
- Task: Image Classification
- Number of Classes: 5
- Image Size: 224 Γ 224
- Accuracy: 99.29%
- Top-3 Accuracy: 100%
πΎ Rice Classes
The model can classify the following rice types:
- Arborio
- Basmati
- Ipsala
- Jasmine
- Karacadag
πΌοΈ How to use the app
- Upload a rice image (JPG or PNG)
- The model analyzes the image
- The predicted rice type is shown
- You also see the confidence score
π Model Performance
- Very high accuracy on the validation set
- Only a few misclassifications
- Most errors happen between visually similar rice types
The model is stable and reliable.
π§ͺ Training Summary
- Base Model: ResNet50
- Transfer Learning: Yes
- Data Augmentation: Yes
- Optimizer: Adam
- Loss Function: Sparse Categorical Crossentropy
- Batch Size: 16
π Files in this Space
app.pyβ Streamlit Appbest_rice_resnet50.kerasβ Trained ModelREADME.mdβ This file
π€ Author
Name: Enes Yamac
Date: 05.12.2025
Project Type: Deep Learning β CNN Image Classification with ResNet50
β
Enjoy testing the rice classifier!
Upload an image and let the AI predict the rice type πΎπ€