Xu Ma commited on
Commit
527204a
1 Parent(s): 7e9a1f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -117,7 +117,7 @@ def export_json(results, model, img_size):
117
  ]
118
 
119
 
120
- def yolo_det(img, device, model_name, inference_size, conf, iou, label_opt, model_cls):
121
 
122
  global model, model_name_tmp, device_tmp
123
 
@@ -190,6 +190,7 @@ def main(args):
190
 
191
  # -------------------输入组件-------------------
192
  inputs_img = gr.inputs.Image(type="pil", label="Input Image")
 
193
  experiment_id = gr.inputs.Radio(
194
  choices=[
195
  "add [1,1,1,1,1] paths",
@@ -224,6 +225,7 @@ def main(args):
224
  # 输入参数
225
  inputs = [
226
  inputs_img, # 输入图片
 
227
  device, # 设备
228
  inputs_model, # 模型
229
  inputs_size, # 推理尺寸
@@ -237,9 +239,9 @@ def main(args):
237
  outputs02 = gr.outputs.JSON(label="检测信息")
238
 
239
  # 标题
240
- title = "基于Gradio的YOLOv5通用目标检测系统"
241
  # 描述
242
- description = "<div align='center'>可自定义目标检测模型、安装简单、使用方便</div>"
243
 
244
  # 示例图片
245
  examples = [
@@ -290,7 +292,7 @@ def main(args):
290
  ).launch(
291
  inbrowser=True, # 自动打开默认浏览器
292
  show_tips=True, # 自动显示gradio最新功能
293
- favicon_path="./icon/logo.ico",
294
  )
295
 
296
 
 
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
 
 
190
 
191
  # -------------------输入组件-------------------
192
  inputs_img = gr.inputs.Image(type="pil", label="Input Image")
193
+
194
  experiment_id = gr.inputs.Radio(
195
  choices=[
196
  "add [1,1,1,1,1] paths",
 
225
  # 输入参数
226
  inputs = [
227
  inputs_img, # 输入图片
228
+ experiment_id, # path adding scheduler
229
  device, # 设备
230
  inputs_model, # 模型
231
  inputs_size, # 推理尺寸
 
239
  outputs02 = gr.outputs.JSON(label="检测信息")
240
 
241
  # 标题
242
+ title = "LIVE: Towards Layer-wise Image Vectorization (CVPR 2022 Oral Presentation)"
243
  # 描述
244
+ description = "<div align='center'>Layer-wise image vectorization</div>"
245
 
246
  # 示例图片
247
  examples = [
 
292
  ).launch(
293
  inbrowser=True, # 自动打开默认浏览器
294
  show_tips=True, # 自动显示gradio最新功能
295
+ # favicon_path="./icon/logo.ico",
296
  )
297
 
298