Update ML Intern artifact metadata
Browse files
README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# 籽粒分类模型(大米品种分类) / Grain Seed Classification Model
|
| 2 |
|
| 3 |
This repository contains the training script and (eventually) the fine-tuned model for classifying **rice grain varieties** from seed images.
|
|
@@ -58,3 +62,23 @@ The same script works for any `datasets.ImageFolder`-style dataset. To add peanu
|
|
| 58 |
## License
|
| 59 |
|
| 60 |
Apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- ml-intern
|
| 4 |
+
---
|
| 5 |
# 籽粒分类模型(大米品种分类) / Grain Seed Classification Model
|
| 6 |
|
| 7 |
This repository contains the training script and (eventually) the fine-tuned model for classifying **rice grain varieties** from seed images.
|
|
|
|
| 62 |
## License
|
| 63 |
|
| 64 |
Apache-2.0
|
| 65 |
+
|
| 66 |
+
<!-- ml-intern-provenance -->
|
| 67 |
+
## Generated by ML Intern
|
| 68 |
+
|
| 69 |
+
This model repository was generated by [ML Intern](https://github.com/huggingface/ml-intern), an agent for machine learning research and development on the Hugging Face Hub.
|
| 70 |
+
|
| 71 |
+
- Try ML Intern: https://smolagents-ml-intern.hf.space
|
| 72 |
+
- Source code: https://github.com/huggingface/ml-intern
|
| 73 |
+
|
| 74 |
+
## Usage
|
| 75 |
+
|
| 76 |
+
```python
|
| 77 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 78 |
+
|
| 79 |
+
model_id = "chaosbee997/rice-seed-classifier"
|
| 80 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 81 |
+
model = AutoModelForCausalLM.from_pretrained(model_id)
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
For non-causal architectures, replace `AutoModelForCausalLM` with the appropriate `AutoModel` class.
|