Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def show_preds_image(image):
|
|
14 |
|
15 |
image = cv2.imread(image_path)
|
16 |
outputs = model.predict(source=image_path)
|
17 |
-
|
18 |
results = outputs[0].boxes.xyxy.cpu().numpy()
|
19 |
for det in results:
|
20 |
x1, y1, x2, y2 = det[:4]
|
@@ -51,7 +51,7 @@ interface_image = gr.Interface(
|
|
51 |
fn=show_preds_image,
|
52 |
inputs=inputs_image,
|
53 |
outputs=outputs_image,
|
54 |
-
title="
|
55 |
examples=[],
|
56 |
cache_examples=False,
|
57 |
)
|
|
|
14 |
|
15 |
image = cv2.imread(image_path)
|
16 |
outputs = model.predict(source=image_path)
|
17 |
+
print("output:: ", type(outputs[0]))
|
18 |
results = outputs[0].boxes.xyxy.cpu().numpy()
|
19 |
for det in results:
|
20 |
x1, y1, x2, y2 = det[:4]
|
|
|
51 |
fn=show_preds_image,
|
52 |
inputs=inputs_image,
|
53 |
outputs=outputs_image,
|
54 |
+
title="ReWilding Europe Project - Demo[Yolov8]",
|
55 |
examples=[],
|
56 |
cache_examples=False,
|
57 |
)
|