GlobalWheat/GWFSS_v1.0
Viewer โข Updated โข 1.1k โข 133 โข 3
A semantic segmentation model for counting wheat heads in field images. Designed for yield estimation, flowering time detection, and field maturity assessment.
| Class | F1 |
|---|---|
| Background | 0.858 |
| Leaf | 0.889 |
| Stem | 0.535 |
| Head | 0.897 |
from inference import GWFSSModel
from PIL import Image
# Load model
model = GWFSSModel("model.pth")
# Load and process image
image = Image.open("input.jpg")
predictions = model.predict(image)
# Count heads
num_heads = model.count_heads(predictions)
print(f"๐พ {num_heads} heads detected")
# Create visualisation
overlay = model.overlay_mask(image, predictions, alpha=0.5, heads_only=True)
overlay.save("output.png")
Best performance is achieved with overhead imagery under diffuse lighting. Known challenges include:
This model is trained on GWFSS_v1.0_labelled from the Global Wheat Full Semantic Organ Segmentation dataset.
Base model
microsoft/resnet-50