Text Classification
Transformers
Safetensors
yield-weather-soil
crop-yield
multi-temporal
regression
yield-estimation
custom_code
Instructions to use ICICLE-AI/yield-estimation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ICICLE-AI/yield-estimation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ICICLE-AI/yield-estimation", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("ICICLE-AI/yield-estimation", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Delete sample_test.py
Browse files- sample_test.py +0 -14
sample_test.py
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
import json
|
| 2 |
-
from transformers import pipeline
|
| 3 |
-
|
| 4 |
-
with open(f"sample_input_daily.json", "r") as f:
|
| 5 |
-
sample = json.load(f)
|
| 6 |
-
|
| 7 |
-
pipe = pipeline(
|
| 8 |
-
"yield-estimation",
|
| 9 |
-
model=".",
|
| 10 |
-
trust_remote_code=True,
|
| 11 |
-
)
|
| 12 |
-
|
| 13 |
-
out = pipe(sample)
|
| 14 |
-
print(json.dumps(out, indent=2))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|