Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,9 +119,55 @@ os.makedirs(MONITORING_ARCHIVE_DIR, exist_ok=True)
|
|
| 119 |
os.makedirs(MODEL_PERFORMANCE_DIR, exist_ok=True)
|
| 120 |
|
| 121 |
# Keywords
|
| 122 |
-
NON_PLANT_KEYWORDS = ['pot', 'label', 'background', 'hand', '
|
| 123 |
-
|
| 124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
|
| 126 |
# ========================================================
|
| 127 |
# REQUESTS SESSION
|
|
|
|
| 119 |
os.makedirs(MODEL_PERFORMANCE_DIR, exist_ok=True)
|
| 120 |
|
| 121 |
# Keywords
|
| 122 |
+
NON_PLANT_KEYWORDS = ['pot', 'label', 'background', 'hand', 'unhealthy', 'unknown', 'drop',
|
| 123 |
+
'daisy', 'nursery', 'glasshouse', 'cliff', 'picket', 'fence', 'vase',
|
| 124 |
+
'barrow', 'garden cart', 'lawn cart', 'wheelbarrow', 'fire screen',
|
| 125 |
+
'fireguard', 'castle', 'viaduct', 'watering can', 'shovel', 'trowel',
|
| 126 |
+
'rake', 'hoe', 'pruner', 'shears', 'mower', 'sprayer', 'trellis',
|
| 127 |
+
'stake', 'wire cage', 'planter box', 'raised bed', 'compost bin',
|
| 128 |
+
'garden hose', 'gloves', 'boots', 'bird bath', 'gnome', 'bench',
|
| 129 |
+
'patio furniture', 'fountain', 'scarecrow', 'sun dial', 'seeder',
|
| 130 |
+
'sundial', 'deck', 'porch', 'balcony', 'shed', 'greenhouse', 'pergola',
|
| 131 |
+
'arbor', 'gazebo', 'wall', 'brick', 'stone', 'pavement', 'concrete',
|
| 132 |
+
'dirt', 'soil', 'sand', 'gravel', 'sky', 'clouds', 'sunshine',
|
| 133 |
+
'shadow', 'mountain', 'river', 'lake', 'stream', 'pathway', 'walkway',
|
| 134 |
+
'door', 'window', 'roof', 'chimney', 'lamp post', 'street light',
|
| 135 |
+
'human', 'animal', 'insect', 'bird', 'cat', 'dog', 'man', 'woman',
|
| 136 |
+
'child', 'texture', 'pattern', 'color', 'blur', 'pixel', 'reflection',
|
| 137 |
+
'water droplet', 'rain', 'snow', 'frost', 'dew', 'person', 'tool',
|
| 138 |
+
'equipment', 'appliance', 'flower', 'tree', 'bush', 'shrub', 'weed',
|
| 139 |
+
'grass', 'leaf', 'stem', 'root','rosehip', 'hip']
|
| 140 |
+
DISEASE_KEYWORDS = [ 'disease', 'healthy', 'unhealthy', 'sickness', 'infection', 'pathogen',
|
| 141 |
+
'syndrome', 'disorder', 'malaise', 'decline', 'symptom', 'sign',
|
| 142 |
+
'mortality', 'morbidity', 'prevention', 'cure', 'treatment', 'blight',
|
| 143 |
+
'rust', 'rot', 'mold', 'mildew', 'wilt', 'spot', 'scab', 'canker',
|
| 144 |
+
'lesion', 'necrosis', 'chlorosis', 'mosaic', 'virus', 'bacterial',
|
| 145 |
+
'fungal', 'oomycete', 'viroid', 'phytoplasma', 'nematode', 'mycoplasma',
|
| 146 |
+
'parasite', 'saprophyte', 'obligate', 'facultative', 'systemic',
|
| 147 |
+
'localized', 'dieback', 'galls', 'tumors', 'pustules', 'ooze',
|
| 148 |
+
'exudate', 'stunting', 'dwarfing', 'etiolation', 'deformation',
|
| 149 |
+
'distortion', 'yellowing', 'browning', 'blackening', 'whitening',
|
| 150 |
+
'reddening', 'bronzing', 'margin', 'veinal', 'interveinal', 'hole',
|
| 151 |
+
'tear', 'chewing', 'mining', 'pest', 'insect', 'mite', 'aphid',
|
| 152 |
+
'thrips', 'whitefly', 'scale', 'mealybug', 'caterpillar', 'grub',
|
| 153 |
+
'borer', 'leafhopper', 'spider', 'snail', 'slug', 'weevil', 'locust',
|
| 154 |
+
'earwig', 'cutworm', 'armyworm', 'fungus gnat', 'webbing', 'gall former',
|
| 155 |
+
'powdery', 'downy', 'anthracnose', 'septoria', 'phytophthora',
|
| 156 |
+
'fusarium', 'verticillium', 'pythium', 'botrytis', 'alternaria',
|
| 157 |
+
'cercospora', 'xanthomonas', 'pseudomonas', 'erwinia', 'agrobacterium',
|
| 158 |
+
'rhizoctonia', 'sclerotinia', 'plasmopara', 'peronospora', 'unCinula',
|
| 159 |
+
'oidium', 'taphrina', 'meloidogyne', 'deficiency', 'toxicity',
|
| 160 |
+
'nutritional', 'nitrogen', 'phosphorus', 'potassium', 'iron',
|
| 161 |
+
'magnesium', 'calcium', 'sulfur', 'manganese', 'zinc', 'copper',
|
| 162 |
+
'boron', 'molybdenum', 'over-fertilization', 'salt burn', 'pH imbalance',
|
| 163 |
+
'stress', 'damage', 'drought', 'waterlogging', 'overwatering',
|
| 164 |
+
'underwatering', 'heat', 'cold', 'frost', 'sun', 'burn', 'scald',
|
| 165 |
+
'windburn', 'hail', 'lightning', 'mechanical', 'chemical', 'herbicide',
|
| 166 |
+
'air pollution', 'ozone', 'acid rain', 'transplant shock', 'girdling',
|
| 167 |
+
'lodging', 'edema', 'early', 'late', 'leaf', 'stem', 'root',
|
| 168 |
+
'flower', 'fruit', 'bud', 'twig', 'branch', 'trunk', 'crown',
|
| 169 |
+
'vascular', 'xylem', 'phloem', 'black', 'brown', 'yellow', 'white',
|
| 170 |
+
'gray', 'grey']
|
| 171 |
|
| 172 |
# ========================================================
|
| 173 |
# REQUESTS SESSION
|