Downloads · 30 days
6
0% of all-time downloads
farhan-fahlevi/siglip2-for-palm-disease-detection
siglip2-for-palm-disease-detection is a image classification model from farhan-fahlevi. Use it when you need a label for an image. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned google/siglip2-so400m-patch14-384 vision encoder with a 9-way multi-label linear head, for detecting diseases/conditions on oil-palm (kelapa sawit) seedlings in the pre-nursery phase.
Downloads · 30 days
6
0% of all-time downloads
All-time downloads
1.3K
Public
Parameters
428M
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.7 GB · 98%
From the Hugging Face model README
Fine-tuned google/siglip2-so400m-patch14-384 vision encoder with a 9-way multi-label linear head, for
detecting diseases/conditions on oil-palm (kelapa sawit) seedlings in the
pre-nursery phase.
| code | name | note |
|---|---|---|
| P00 | Normal | |
| P01 | LeafSpot | |
| P02 | Anthracnose | |
| P03 | BudRot | data-limited |
| P04 | Chlorosis | |
| P05 | NettleCat | data-limited |
| P06 | AlgalRust | |
| P07 | Fusarium | data-limited |
| P08 | FertBurn |
See inference_example.py. In short: load the base SigLIP vision tower, attach
the linear head from model.safetensors, preprocess with the bundled
preprocessor_config.json, apply per-class thresholds from thresholds.json.
import json, torch
from transformers import AutoModel, AutoProcessor
from safetensors.torch import load_file
from PIL import Image
# ... (full runnable version in inference_example.py)
This model outputs one independent sigmoid score per class. Do not use a
global 0.5 cutoff. Use the per-class thresholds in thresholds.json, which
were tuned on a validation split (maximizing per-class F1) and then frozen.
A global threshold is known to be wrong here because the class scores are
imbalanced and not comparable across classes.
Undergraduate thesis, Program Studi Ilmu Komputer, FMIPA, Universitas Pakuan.
Weights repackaged from training checkpoint siglip2_palm.pt.