BhumikaMak commited on
Commit
09c1404
Β·
verified Β·
1 Parent(s): a5cef68

update html

Browse files
Files changed (1) hide show
  1. app.py +37 -8
app.py CHANGED
@@ -8,14 +8,20 @@ yolov5_dff = os.path.join(os.getcwd(), "data/xai/yolov5_dff.png")
8
  yolov8_dff = os.path.join(os.getcwd(), "data/xai/yolov8_dff.png")
9
 
10
  architecture_description_yolov5 = """
11
- ### YOLOv5 Architecture
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
- - **Backbone**: Uses **CSPDarknet53** for feature extraction with **ResNet**-like residual connections.
14
- - **Neck**: **PANet** and **FPN** aggregate features at multiple scales.
15
- - **Head**: Predicts bounding boxes (x, y, w, h), class probabilities, and objectness scores.
16
- - **Loss Functions**: **CIoU** for bounding box regression, **cross-entropy** for classification.
17
- - **Grid-based Detection**: Divides input into grid cells predicting multiple bounding boxes.
18
- - **Non-Maximum Suppression (NMS)**: Filters overlapping boxes with high confidence.
19
  """
20
 
21
  architecture_description_yolov8s = """
@@ -267,7 +273,30 @@ with gr.Blocks(css=custom_css) as demo:
267
 
268
  with gr.Row():
269
  with gr.Column():
270
- gr.Markdown(architecture_description_yolov5)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
271
  # gr.HTML(get_netron_html(yolov5_url))
272
  gr.Image(yolov5_result, label="Detections & Interpretability Map")
273
  gr.Markdown(description_yolov5)
 
8
  yolov8_dff = os.path.join(os.getcwd(), "data/xai/yolov8_dff.png")
9
 
10
  architecture_description_yolov5 = """
11
+ ### YOLOv5 Architecture
12
+
13
+ πŸ–₯️ **Backbone:** Uses **CSPDarknet53** for feature extraction with **ResNet-like** residual connections.
14
+
15
+ πŸ”— **Neck:** Combines **PANet** and **FPN** to aggregate features at multiple scales.
16
+
17
+ 🧠 **Head:** Predicts bounding boxes (**x, y, w, h**), class probabilities, and objectness scores.
18
+
19
+ πŸ“‰ **Loss Functions:** **CIoU** for bounding box regression. and **Cross-entropy** for classification.
20
+
21
+ πŸ—ΊοΈ **Grid-based Detection:** Divides input into grid cells predicting multiple bounding boxes.
22
+
23
+ 🚫 **Non-Maximum Suppression (NMS):** Filters overlapping boxes with high confidence.
24
 
 
 
 
 
 
 
25
  """
26
 
27
  architecture_description_yolov8s = """
 
273
 
274
  with gr.Row():
275
  with gr.Column():
276
+ #gr.Markdown(architecture_description_yolov5)
277
+ html_content = """
278
+ <div style="display: flex; gap: 10px;">
279
+ <a href="https://github.com/ultralytics/yolov5/actions" target="_blank">
280
+ <img src="https://img.shields.io/badge/YOLOv5%20CI-passing-brightgreen" alt="YOLOv5 CI">
281
+ </a>
282
+ <a href="https://doi.org/10.5281/zenodo.7347926" target="_blank">
283
+ <img src="https://img.shields.io/badge/DOI-10.5281%2Fzenodo.7347926-blue" alt="DOI">
284
+ </a>
285
+ <a href="https://hub.docker.com/r/ultralytics/yolov5" target="_blank">
286
+ <img src="https://img.shields.io/badge/docker%20pulls-361k-blue" alt="Docker Pulls">
287
+ </a>
288
+ <a href="https://gradient.paperspace.com" target="_blank">
289
+ <img src="https://img.shields.io/badge/Run%20on%20Gradient-red" alt="Run on Gradient">
290
+ </a>
291
+ <a href="https://colab.research.google.com/" target="_blank">
292
+ <img src="https://img.shields.io/badge/Open%20in%20Colab-orange" alt="Open in Colab">
293
+ </a>
294
+ <a href="https://www.kaggle.com/" target="_blank">
295
+ <img src="https://img.shields.io/badge/Open%20in%20Kaggle-blue" alt="Open in Kaggle">
296
+ </a>
297
+ </div>
298
+ """
299
+ gr.HTML(html_content)
300
  # gr.HTML(get_netron_html(yolov5_url))
301
  gr.Image(yolov5_result, label="Detections & Interpretability Map")
302
  gr.Markdown(description_yolov5)