Spaces:
Runtime error
Runtime error
Update app.py
Browse fileschange rescale from 400 ti 640px
app.py
CHANGED
@@ -64,7 +64,7 @@ def scale_image(img: np.ndarray, size: int) -> np.ndarray:
|
|
64 |
|
65 |
|
66 |
def base_detect(detector, img):
|
67 |
-
img = scale_image(img,
|
68 |
|
69 |
detections = detector.detect(img)
|
70 |
img_vis = img.copy()
|
|
|
64 |
|
65 |
|
66 |
def base_detect(detector, img):
|
67 |
+
img = scale_image(img, 640)
|
68 |
|
69 |
detections = detector.detect(img)
|
70 |
img_vis = img.copy()
|