Spaces:
Runtime error
Runtime error
Xu Ma
commited on
Commit
·
3617552
1
Parent(s):
657eada
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def export_json(results, model, img_size):
|
|
117 |
]
|
118 |
|
119 |
|
120 |
-
def yolo_det(img, experiment_id, device, model_name, inference_size, conf, iou, label_opt, model_cls):
|
121 |
|
122 |
global model, model_name_tmp, device_tmp
|
123 |
|
@@ -227,13 +227,13 @@ def main(args):
|
|
227 |
inputs = [
|
228 |
inputs_img, # 输入图片
|
229 |
experiment_id, # path adding scheduler
|
230 |
-
device, # 设备
|
231 |
-
inputs_model, # 模型
|
232 |
-
inputs_size, # 推理尺寸
|
233 |
-
input_conf, # 置信度阈值
|
234 |
-
inputs_iou, # IoU阈值
|
235 |
-
inputs_label, # 标签显示
|
236 |
-
inputs_clsName, # 类别
|
237 |
]
|
238 |
# 输出参数
|
239 |
outputs = gr.outputs.Image(type="pil", label="检测图片")
|
|
|
117 |
]
|
118 |
|
119 |
|
120 |
+
def yolo_det(img, experiment_id, device=None, model_name=None, inference_size=None, conf=None, iou=None, label_opt=None, model_cls=None):
|
121 |
|
122 |
global model, model_name_tmp, device_tmp
|
123 |
|
|
|
227 |
inputs = [
|
228 |
inputs_img, # 输入图片
|
229 |
experiment_id, # path adding scheduler
|
230 |
+
# device, # 设备
|
231 |
+
# inputs_model, # 模型
|
232 |
+
# inputs_size, # 推理尺寸
|
233 |
+
# input_conf, # 置信度阈值
|
234 |
+
# inputs_iou, # IoU阈值
|
235 |
+
# inputs_label, # 标签显示
|
236 |
+
# inputs_clsName, # 类别
|
237 |
]
|
238 |
# 输出参数
|
239 |
outputs = gr.outputs.Image(type="pil", label="检测图片")
|