salman11169 commited on
Commit
b2d56c2
·
verified ·
1 Parent(s): 6cbf296

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +81 -0
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - pytorch
5
+ - image-classification
6
+ - plant-disease
7
+ - agriculture
8
+ - computer-vision
9
+ language:
10
+ - ar
11
+ - en
12
+ ---
13
+
14
+ # 🌱 Plant Disease Detection Models
15
+
16
+ نماذج PyTorch لتشخيص أمراض النباتات باستخدام التعلم العميق.
17
+
18
+ ## 📋 النماذج المتاحة
19
+
20
+ ### 1. Tomato (الطماطم)
21
+ - **الفئات**: 10 أمراض
22
+ - **الملف**: `tomato/tomato_model_best.pt`
23
+ - **الدقة**: ~94%
24
+
25
+ ### 2. Grape (العنب)
26
+ - **الفئات**: 4 أمراض
27
+ - **الملف**: `grape/grape_finetuned_best.pt`
28
+ - **الدقة**: ~96%
29
+
30
+ ### 3. Cucumber (الخيار)
31
+ - **الفئات**: 3 أمراض
32
+ - **الملف**: `cucumber/cucumber_model_best.pt`
33
+ - **الدقة**: ~95%
34
+
35
+ ## 🚀 الاستخدام
36
+
37
+ ### تحميل النموذج
38
+
39
+ ```python
40
+ from huggingface_hub import hf_hub_download
41
+ import torch
42
+
43
+ # تحميل نموذج الطماطم
44
+ model_path = hf_hub_download(
45
+ repo_id="salman11169/plant-disease-models",
46
+ filename="tomato/tomato_model_best.pt"
47
+ )
48
+
49
+ # تحميل النموذج
50
+ model = torch.load(model_path, map_location='cpu')
51
+ ```
52
+
53
+ ### استخدام Inference API
54
+
55
+ ```python
56
+ from huggingface_hub import InferenceClient
57
+
58
+ client = InferenceClient(token="YOUR_HF_TOKEN")
59
+
60
+ # استدعاء النموذج
61
+ result = client.post(
62
+ json={"inputs": image_data},
63
+ model="salman11169/plant-disease-models"
64
+ )
65
+ ```
66
+
67
+ ## 📊 البنية المعمارية
68
+
69
+ النماذج مبنية على بنية CNN مخصصة مع:
70
+ - Convolutional layers للاستخراج التلقائي للميزات
71
+ - Batch Normalization للاستقرار
72
+ - Dropout للحد من Overfitting
73
+ - Dense layers للتصنيف النهائي
74
+
75
+ ## 📝 الترخيص
76
+
77
+ MIT License
78
+
79
+ ## 👨‍💻 المطور
80
+
81
+ تم تطوير هذه النماذج كجزء من مشروع Plant Care Application.