deadbear34's picture
Upload README.md with huggingface_hub
d1382e6 verified
|
Raw
History Blame Contribute Delete
1.13 kB
metadata
title: PlantField Classification
emoji: 🌿
colorFrom: green
colorTo: blue
sdk: docker
app_port: 7860
pinned: false
license: mit

🌿 PlantField - Lettuce Disease Detection API

Model klasifikasi penyakit selada menggunakan ResNet50 dengan pendekatan 2-Stage Classification.

Endpoint

POST /classification

Upload gambar tanaman selada untuk mendapatkan hasil klasifikasi.

Request:

  • Content-Type: multipart/form-data
  • file: File gambar (JPEG, PNG, dll.)

Response:

{
    "stage1_result": "Diseased",
    "stage1_confidence": 0.9987,
    "stage1_probabilities": {
        "Healthy": 0.0013,
        "Diseased": 0.9987
    },
    "stage2_result": "Downy Mildew",
    "stage2_confidence": 0.9723,
    "stage2_probabilities": {
        "Downy Mildew": 0.9723,
        "Powdery Mildew": 0.0134,
        "Septoria Blight": 0.0098,
        "Viral": 0.0045
    },
    "final_label": "Downy Mildew",
    "final_confidence": 0.9723
}

Kelas yang Dapat Diklasifikasi

  • Stage 1 (Binary): Healthy, Diseased
  • Stage 2 (Multi-class): Downy Mildew, Powdery Mildew, Septoria Blight, Viral