Run this model with HF Jobs

Run GlobalWheat/GWFSS_Segformer_b1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/GlobalWheat/GWFSS_Segformer_b1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/GlobalWheat/GWFSS_Segformer_b1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Usage

from transformers import AutoImageProcessor, SegformerForSemanticSegmentation
import torch, torch.nn.functional as F
from PIL import Image
import numpy as np

repo = "GlobalWheat/GWFSS_model_v1.0"
processor = AutoImageProcessor.from_pretrained(repo)
model = SegformerForSemanticSegmentation.from_pretrained(repo).eval()

img = Image.open("example.jpg").convert("RGB")
inputs = processor(images=img, return_tensors="pt")
with torch.no_grad():
    logits = model(**inputs).logits
    up = F.interpolate(logits, size=(img.height, img.width), mode="bilinear", align_corners=False)
pred = up.argmax(1)[0].cpu().numpy()  # (H, W) class IDs

This version is based on huggingface Segformer which could be slightly different from the one we used for our paper. The paper version was implemented based on the mmsegmentation. You can find the model weight for mmsegmentation library in this repo as well.

Related Paper

This dataset is associated with the following paper: The Global Wheat Full Semantic Organ Segmentation (GWFSS) Dataset https://doi.org/10.1016/j.plaphe.2025.100084

Downloads last month
83
Safetensors
Model size
13.7M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for GlobalWheat/GWFSS_Segformer_b1

Finetuned
(33)
this model

Dataset used to train GlobalWheat/GWFSS_Segformer_b1