YONG627 commited on
Commit
2fa0cbd
·
verified ·
1 Parent(s): d114607

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -16
app.py CHANGED
@@ -3,19 +3,19 @@ import sahi
3
  import torch
4
  from ultralyticsplus import YOLO, render_model_output
5
 
6
- # Images
7
- sahi.utils.file.download_from_url(
8
- "https://raw.githubusercontent.com/obss/sahi/main/tests/data/small-vehicles1.jpeg",
9
- "highway.jpg",
10
- )
11
- sahi.utils.file.download_from_url(
12
- "https://raw.githubusercontent.com/obss/sahi/main/tests/data/small-vehicles1.jpeg",
13
- "small-vehicles1.jpeg",
14
- )
15
- sahi.utils.file.download_from_url(
16
- "https://raw.githubusercontent.com/ultralytics/yolov5/master/data/images/zidane.jpg",
17
- "zidane.jpg",
18
- )
19
 
20
 
21
  model_names = [
@@ -84,9 +84,9 @@ outputs = gr.Image(type="filepath", label="Output Image")
84
  title = "Ultralytics YOLOv8 Segmentation Demo"
85
 
86
  examples = [
87
- ["zidane.jpg", "yolov8m-seg.pt", 640, 0.6, 0.45],
88
- ["highway.jpg", "yolov8m-seg.pt", 640, 0.25, 0.45],
89
- ["small-vehicles1.jpeg", "yolov8m-seg.pt", 640, 0.25, 0.45],
90
  ]
91
  demo_app = gr.Interface(
92
  fn=yolov8_inference,
 
3
  import torch
4
  from ultralyticsplus import YOLO, render_model_output
5
 
6
+ # # Images
7
+ # sahi.utils.file.download_from_url(
8
+ # "https://raw.githubusercontent.com/obss/sahi/main/tests/data/small-vehicles1.jpeg",
9
+ # "highway.jpg",
10
+ # )
11
+ # sahi.utils.file.download_from_url(
12
+ # "https://raw.githubusercontent.com/obss/sahi/main/tests/data/small-vehicles1.jpeg",
13
+ # "small-vehicles1.jpeg",
14
+ # )
15
+ # sahi.utils.file.download_from_url(
16
+ # "https://raw.githubusercontent.com/ultralytics/yolov5/master/data/images/zidane.jpg",
17
+ # "zidane.jpg",
18
+ # )
19
 
20
 
21
  model_names = [
 
84
  title = "Ultralytics YOLOv8 Segmentation Demo"
85
 
86
  examples = [
87
+ ["ikun.jpg", "yolov8m-seg.pt", 640, 0.6, 0.45],
88
+ ["ikun.jpg", "yolov8m-seg.pt", 640, 0.25, 0.45],
89
+
90
  ]
91
  demo_app = gr.Interface(
92
  fn=yolov8_inference,