Vvaann commited on
Commit
a00fc6b
·
verified ·
1 Parent(s): fb13f18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -13,6 +13,7 @@ def inference(input_img, conf_threshold, iou_threshold):
13
  model.conf = conf_threshold
14
  model.iou = iou_threshold
15
  # Perform inference
 
16
  results = model(input_img, size=image_size)
17
 
18
  # Optionally, show detection bounding boxes on image
 
13
  model.conf = conf_threshold
14
  model.iou = iou_threshold
15
  # Perform inference
16
+ image_size = input_img.shape
17
  results = model(input_img, size=image_size)
18
 
19
  # Optionally, show detection bounding boxes on image