Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -304,7 +304,7 @@ async def predict(image):
|
|
304 |
if isinstance(image, np.ndarray):
|
305 |
image = Image.fromarray(image)
|
306 |
|
307 |
-
dogs = await detect_multiple_dogs(image, conf_threshold=0.
|
308 |
|
309 |
if len(dogs) <= 1:
|
310 |
return await process_single_dog(image)
|
|
|
304 |
if isinstance(image, np.ndarray):
|
305 |
image = Image.fromarray(image)
|
306 |
|
307 |
+
dogs = await detect_multiple_dogs(image, conf_threshold=0.25, iou_threshold=0.4)
|
308 |
|
309 |
if len(dogs) <= 1:
|
310 |
return await process_single_dog(image)
|