BhumikaMak commited on
Commit
4cb1a32
·
verified ·
1 Parent(s): 2db7ebd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -26
app.py CHANGED
@@ -31,48 +31,44 @@ architecture_description_yolov8s = """
31
  """
32
 
33
  description_yolov5 = """
34
- #### **1. Feature Focus for Dogs:**
35
- - The model primarily focuses on:
36
- - **Face and Snout:** Key identifiers like eyes, nose, and mouth for dog recognition.
37
- - **Ears:** Distinctive ear shapes, such as pointed or floppy ears, are highlighted.
38
- - **Body Shape:** Focuses on the overall body contour, including legs and tails.
39
- - **Fur Texture:** Highlights curly fur in poodles and smooth fur in corgis.
40
-
41
- #### **2. Feature Focus for Cats:**
42
- - The network highlights:
43
- - **Face and Eyes:** Sharp eyes and whiskers as distinguishing features.
44
- - **Ears:** Pointy ears emphasized for identification.
45
- - **Body Size and Posture:** Compact body shape and sitting posture are captured.
46
- - **Tail and Paws:** Occasionally highlights tails or paws for finer details.
47
-
48
- #### **3. Incorrect Focus or Ambiguity:**
49
- - Some panels show **misfocused areas**, such as:
50
- - **Background:** Irrelevant parts receive attention, causing confusion.
51
- - **Shared Features:** Overlap in fur patterns or body shapes may lead to errors.
52
-
53
- #### **4. Insights:**
54
- - The visualizations explain **why the model classifies certain parts as important** for distinguishing dogs and cats.
55
- - They highlight **potential biases** or areas for improvement, e.g., reliance on shared features instead of species-specific traits.
56
  """
57
 
58
  description_yolov8 = """
59
 
60
- #### **1. Feature Focus for Dogs:**
61
  - **Facial Features:** Strong emphasis on **eyes, nose, and mouth**, aiding in species identification.
62
  - **Ears and Fur Texture:** Highlights distinctive **fluffy or smooth fur patterns** and **ear shapes** (pointed or floppy).
63
  - **Body and Legs:** Focus on the **overall contour, legs, and tails**, distinguishing body structures of breeds like poodles and corgis.
64
 
65
- #### **2. Feature Focus for Cats:**
66
  - **Face and Eyes:** Sharp focus on **eyes and whiskers**, key characteristics of feline features.
67
  - **Body Shape and Tail:** Emphasizes the **compact size and tail curvature**.
68
  - **Paws and Posture:** Captures sitting postures and detailed paw structures.
69
 
70
- #### **3. Incorrect Focus or Ambiguity:**
71
  - **Background Highlights:** Some heatmaps show attention to **background regions**, leading to irrelevant feature extraction.
72
  - **Shared Features:** Overlapping fur patterns and body structures between dogs and cats occasionally result in misclassification risks.
73
  - **Edge and Border Effects:** Emphasis on **image boundaries** could reflect dataset biases during training.
74
 
75
- #### **4. Insights:**
76
  - Refinements, such as **attention-based mechanisms**, can improve focus on discriminative features and reduce errors.
77
  """
78
 
 
31
  """
32
 
33
  description_yolov5 = """
34
+ **Feature Focus for Dogs:**
35
+ - **Face & Snout**: Eyes, nose, and mouth for recognition.
36
+ - **Ears**: Pointed or floppy shapes.
37
+ - **Body Shape**: Legs, tail, and contour.
38
+ - **Fur Texture**: Curly (poodles) or smooth (corgis).
39
+
40
+ **Feature Focus for Cats:**
41
+ - **Face & Eyes**: Sharp eyes and whiskers.
42
+ - **Ears**: Pointed for identification.
43
+ - **Body Size & Posture**: Compact shape and sitting pose.
44
+ - **Tail & Paws**: Sometimes highlighted.
45
+
46
+ **Incorrect Focus:**
47
+ - **Background**: Irrelevant areas confused with key features.
48
+ - **Shared Features**: Overlap in fur or body shape causing errors.
49
+
50
+ **Insights:**
51
+ - Visualizations reveal important traits for classification, showing potential biases or areas for improvement.
 
 
 
 
52
  """
53
 
54
  description_yolov8 = """
55
 
56
+ **Feature Focus for Dogs:**
57
  - **Facial Features:** Strong emphasis on **eyes, nose, and mouth**, aiding in species identification.
58
  - **Ears and Fur Texture:** Highlights distinctive **fluffy or smooth fur patterns** and **ear shapes** (pointed or floppy).
59
  - **Body and Legs:** Focus on the **overall contour, legs, and tails**, distinguishing body structures of breeds like poodles and corgis.
60
 
61
+ **Feature Focus for Cats:**
62
  - **Face and Eyes:** Sharp focus on **eyes and whiskers**, key characteristics of feline features.
63
  - **Body Shape and Tail:** Emphasizes the **compact size and tail curvature**.
64
  - **Paws and Posture:** Captures sitting postures and detailed paw structures.
65
 
66
+ **Incorrect Focus:**
67
  - **Background Highlights:** Some heatmaps show attention to **background regions**, leading to irrelevant feature extraction.
68
  - **Shared Features:** Overlapping fur patterns and body structures between dogs and cats occasionally result in misclassification risks.
69
  - **Edge and Border Effects:** Emphasis on **image boundaries** could reflect dataset biases during training.
70
 
71
+ **Insights:**
72
  - Refinements, such as **attention-based mechanisms**, can improve focus on discriminative features and reduce errors.
73
  """
74