Downloads · 30 days
0
chaosbee997/rice-seed-classifier
rice-seed-classifier is a machine learning model from chaosbee997. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains the training script and (eventually) the fine-tuned model for classifying rice grain varieties from seed images.
Downloads · 30 days
0
Access
Public
Updated May 7, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md10.3 KB · 50%
From the Hugging Face model README
This repository contains the training script and (eventually) the fine-tuned model for classifying rice grain varieties from seed images.
nateraw/rice-image-datasetmicrosoft/resnet-18) — ~11M parameters, lightweight and fastRun the provided script on a GPU (e.g. a10g-large or t4-small via Hugging Face Jobs, or Google Colab):
pip install transformers datasets torch accelerate evaluate pillow trackio
export HF_MODEL_REPO=chaosbee997/rice-seed-classifier
export HF_TOKEN=your_huggingface_token
python train.py
Or submit via Hugging Face Jobs (requires GPU credits):
huggingface-cli job run \
--script train.py \
--hardware a10g-large \
--timeout 4h \
--dependencies "transformers,datasets,torch,accelerate,evaluate,pillow,trackio"
The same script works for any datasets.ImageFolder-style dataset. To add peanut, corn, wheat, etc.:
load_dataset to a local path.MODEL_NAME if you want a different backbone (e.g. microsoft/resnet-34, google/mobilenet_v2_1.0_224).train.py.Apache-2.0
<!-- ml-intern-provenance -->This model repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "chaosbee997/rice-seed-classifier"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
For non-causal architectures, replace AutoModelForCausalLM with the appropriate AutoModel class.