Spaces:
Sleeping
Sleeping
update tile size
Browse files
app.py
CHANGED
|
@@ -201,7 +201,7 @@ from ultralytics.utils.ops import xywhn2xyxy
|
|
| 201 |
def find_boxes_json(image_path):
|
| 202 |
# print(annotator)
|
| 203 |
img = cv2.imread(image_path)
|
| 204 |
-
detections = inference_large(img, model_path, sam_path=None, edge_pct=0.01, conf_threshold=0.4, overlap_px=
|
| 205 |
annotations = detections_to_json(detections, image_path)
|
| 206 |
annotations["image"] = image_path
|
| 207 |
# annotator.update(annotations)
|
|
|
|
| 201 |
def find_boxes_json(image_path):
|
| 202 |
# print(annotator)
|
| 203 |
img = cv2.imread(image_path)
|
| 204 |
+
detections = inference_large(img, model_path, sam_path=None, edge_pct=0.01, conf_threshold=0.4, overlap_px=200, tile_px=640)
|
| 205 |
annotations = detections_to_json(detections, image_path)
|
| 206 |
annotations["image"] = image_path
|
| 207 |
# annotator.update(annotations)
|