Yoyo-9877 commited on
Commit
6ea69cf
路
verified 路
1 Parent(s): 7c25356

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -17
app.py CHANGED
@@ -573,6 +573,7 @@ MIN_MODELS_AGREEMENT = 2 # Minimum models that must agree for valid result
573
  # CURATED AI MODELS - Quality over Quantity
574
  # ========================================================
575
  PLANT_AI_MODELS = {
 
576
  "PlantNet-Species-Expert": {
577
  "model_id": "google/vit-large-patch16-224-in21k",
578
  "specialty": "Species|Taxonomy",
@@ -642,9 +643,9 @@ PLANT_AI_MODELS = {
642
  "reliability": 0.87,
643
  "priority": 8,
644
  "description": "The smallest Swin Transformer variant, ideal for deployment on devices with limited computational resources."
645
- }
646
- }
647
- #-----------------------------------------------诪讞诇讜转-------------------------------------------------------------------------------------
648
  "PlantVillage-Disease-Pro": {
649
  "model_id": "linkanjarad/mobilenet_v2_1.00_224-plant-disease-identification",
650
  "specialty": "Health|Disease",
@@ -728,9 +729,8 @@ PLANT_AI_MODELS = {
728
  "reliability": 0.83,
729
  "priority": 10,
730
  "description": "BEiT model, specialized in analyzing systemic distortions (like leaf curling) typical of viral infections."
731
- }
732
- }
733
-
734
  # ============ TIER 3: Specialized Taxonomic Experts ============
735
  "Tree-Identifier-Pro": {
736
  "model_id": "microsoft/resnet-50",
@@ -815,9 +815,9 @@ PLANT_AI_MODELS = {
815
  "reliability": 0.80,
816
  "priority": 13,
817
  "description": "Lightweight Swin Transformer for detailed taxonomic distinction within desert plant families."
818
- }
819
- }
820
- #============ TIER 4: Ecological & Environmental Specialists ============
821
  "Weed-Detection-System": {
822
  "model_id": "google/efficientnet-b2",
823
  "specialty": "Species|Weed",
@@ -873,8 +873,8 @@ PLANT_AI_MODELS = {
873
  "reliability": 0.78,
874
  "priority": 14,
875
  "description": "A DINO model base adapted for the highly sensitive task of distinguishing between toxic and safe wild flora."
876
- }
877
- }
878
  # ============ TIER 5: Supplementary Analysis ============
879
  "Leaf-Morphology-Analyzer": {
880
  "model_id": "microsoft/resnet-34",
@@ -917,9 +917,8 @@ PLANT_AI_MODELS = {
917
  "reliability": 0.82,
918
  "priority": 10,
919
  "description": "Utilizes self-supervised features to analyze fine-grained details for growth stages and fruit set."
920
- }
921
- },
922
-
923
  # ============ EXTERNAL API: Community Validation ============
924
  "PlantNet-Community-API": {
925
  "model_id": "PlantNet-API",
@@ -928,9 +927,7 @@ PLANT_AI_MODELS = {
928
  "priority": 51,
929
  "description": "External PlantNet API for community validation"
930
  }
931
- }
932
-
933
- # ========================================================
934
  # UTILITY FUNCTIONS
935
  # ========================================================
936
  def load_weights():
 
573
  # CURATED AI MODELS - Quality over Quantity
574
  # ========================================================
575
  PLANT_AI_MODELS = {
576
+ # ============ TIER 1: Core Species Identification ============
577
  "PlantNet-Species-Expert": {
578
  "model_id": "google/vit-large-patch16-224-in21k",
579
  "specialty": "Species|Taxonomy",
 
643
  "reliability": 0.87,
644
  "priority": 8,
645
  "description": "The smallest Swin Transformer variant, ideal for deployment on devices with limited computational resources."
646
+ },
647
+
648
+ # ============ TIER 2: Disease & Health Specialists ============
649
  "PlantVillage-Disease-Pro": {
650
  "model_id": "linkanjarad/mobilenet_v2_1.00_224-plant-disease-identification",
651
  "specialty": "Health|Disease",
 
729
  "reliability": 0.83,
730
  "priority": 10,
731
  "description": "BEiT model, specialized in analyzing systemic distortions (like leaf curling) typical of viral infections."
732
+ },
733
+
 
734
  # ============ TIER 3: Specialized Taxonomic Experts ============
735
  "Tree-Identifier-Pro": {
736
  "model_id": "microsoft/resnet-50",
 
815
  "reliability": 0.80,
816
  "priority": 13,
817
  "description": "Lightweight Swin Transformer for detailed taxonomic distinction within desert plant families."
818
+ },
819
+
820
+ # ============ TIER 4: Ecological & Environmental Specialists ============
821
  "Weed-Detection-System": {
822
  "model_id": "google/efficientnet-b2",
823
  "specialty": "Species|Weed",
 
873
  "reliability": 0.78,
874
  "priority": 14,
875
  "description": "A DINO model base adapted for the highly sensitive task of distinguishing between toxic and safe wild flora."
876
+ },
877
+
878
  # ============ TIER 5: Supplementary Analysis ============
879
  "Leaf-Morphology-Analyzer": {
880
  "model_id": "microsoft/resnet-34",
 
917
  "reliability": 0.82,
918
  "priority": 10,
919
  "description": "Utilizes self-supervised features to analyze fine-grained details for growth stages and fruit set."
920
+ },
921
+
 
922
  # ============ EXTERNAL API: Community Validation ============
923
  "PlantNet-Community-API": {
924
  "model_id": "PlantNet-API",
 
927
  "priority": 51,
928
  "description": "External PlantNet API for community validation"
929
  }
930
+ }# ========================================================
 
 
931
  # UTILITY FUNCTIONS
932
  # ========================================================
933
  def load_weights():