Ean Yang commited on
Commit
6f6405c
·
1 Parent(s): 1c61a82

测试图片路径

Browse files
Files changed (2) hide show
  1. app.py +2 -6
  2. zidane.jpg +0 -0
app.py CHANGED
@@ -3,10 +3,6 @@ import cv2
3
  import tempfile
4
  from ultralytics import YOLOv10
5
 
6
- import os
7
- print("目前目录:", os.getcwd())
8
-
9
-
10
  def yolov10_inference(image, video, model_id, image_size, conf_threshold):
11
  model = YOLOv10.from_pretrained(f'jameslahm/{model_id}')
12
  if image:
@@ -120,13 +116,13 @@ def app():
120
  gr.Examples(
121
  examples=[
122
  [
123
- "ultralytics/assets/bus.jpg",
124
  "yolov10s",
125
  640,
126
  0.25,
127
  ],
128
  [
129
- "ultralytics/assets/zidane.jpg",
130
  "yolov10s",
131
  640,
132
  0.25,
 
3
  import tempfile
4
  from ultralytics import YOLOv10
5
 
 
 
 
 
6
  def yolov10_inference(image, video, model_id, image_size, conf_threshold):
7
  model = YOLOv10.from_pretrained(f'jameslahm/{model_id}')
8
  if image:
 
116
  gr.Examples(
117
  examples=[
118
  [
119
+ "./ultralytics/assets/bus.jpg",
120
  "yolov10s",
121
  640,
122
  0.25,
123
  ],
124
  [
125
+ "./zidane.jpg",
126
  "yolov10s",
127
  640,
128
  0.25,
zidane.jpg ADDED