johnlockejrr commited on
Commit
8c5735b
·
verified ·
1 Parent(s): 3f7c545

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -107,7 +107,8 @@ def detect_and_annotate(
107
  model_name: str,
108
  conf_threshold: float,
109
  iou_threshold: float,
110
- simplify_polygons_option: bool
 
111
  ) -> np.ndarray:
112
  # Get the selected model
113
  model = models[model_name]
@@ -115,6 +116,7 @@ def detect_and_annotate(
115
  # Perform inference
116
  results = model.predict(
117
  image,
 
118
  conf=conf_threshold,
119
  iou=iou_threshold
120
  )[0]
 
107
  model_name: str,
108
  conf_threshold: float,
109
  iou_threshold: float,
110
+ simplify_polygons_option: bool,
111
+ imgsz: Tuple[int, int] = (640, 512)
112
  ) -> np.ndarray:
113
  # Get the selected model
114
  model = models[model_name]
 
116
  # Perform inference
117
  results = model.predict(
118
  image,
119
+ imgsz=imgsz,
120
  conf=conf_threshold,
121
  iou=iou_threshold
122
  )[0]