deadbear34 commited on
Commit
d1382e6
·
verified ·
1 Parent(s): 34bf36e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +43 -4
README.md CHANGED
@@ -1,12 +1,51 @@
1
  ---
2
- title: Plantfield Classification
3
- emoji: 📚
4
  colorFrom: green
5
  colorTo: blue
6
  sdk: docker
 
7
  pinned: false
8
  license: mit
9
- short_description: A ResNet-50 training with lettuce disease dataset.
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: PlantField Classification
3
+ emoji: 🌿
4
  colorFrom: green
5
  colorTo: blue
6
  sdk: docker
7
+ app_port: 7860
8
  pinned: false
9
  license: mit
 
10
  ---
11
 
12
+ # 🌿 PlantField - Lettuce Disease Detection API
13
+
14
+ Model klasifikasi penyakit selada menggunakan ResNet50 dengan pendekatan 2-Stage Classification.
15
+
16
+ ## Endpoint
17
+
18
+ ### `POST /classification`
19
+
20
+ Upload gambar tanaman selada untuk mendapatkan hasil klasifikasi.
21
+
22
+ **Request:**
23
+ - `Content-Type: multipart/form-data`
24
+ - `file`: File gambar (JPEG, PNG, dll.)
25
+
26
+ **Response:**
27
+ ```json
28
+ {
29
+ "stage1_result": "Diseased",
30
+ "stage1_confidence": 0.9987,
31
+ "stage1_probabilities": {
32
+ "Healthy": 0.0013,
33
+ "Diseased": 0.9987
34
+ },
35
+ "stage2_result": "Downy Mildew",
36
+ "stage2_confidence": 0.9723,
37
+ "stage2_probabilities": {
38
+ "Downy Mildew": 0.9723,
39
+ "Powdery Mildew": 0.0134,
40
+ "Septoria Blight": 0.0098,
41
+ "Viral": 0.0045
42
+ },
43
+ "final_label": "Downy Mildew",
44
+ "final_confidence": 0.9723
45
+ }
46
+ ```
47
+
48
+ ## Kelas yang Dapat Diklasifikasi
49
+
50
+ - **Stage 1 (Binary):** Healthy, Diseased
51
+ - **Stage 2 (Multi-class):** Downy Mildew, Powdery Mildew, Septoria Blight, Viral