Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -49,7 +49,7 @@ async def detect(image_path):
|
|
| 49 |
result = await model(images=processed_input["pixel_values"])
|
| 50 |
|
| 51 |
outputs = result["outputs"] # Tensor
|
| 52 |
-
np_outputs = outputs.
|
| 53 |
gradio_labels = [
|
| 54 |
# List[Tuple[numpy.ndarray | Tuple[int, int, int, int], str]]
|
| 55 |
(
|
|
|
|
| 49 |
result = await model(images=processed_input["pixel_values"])
|
| 50 |
|
| 51 |
outputs = result["outputs"] # Tensor
|
| 52 |
+
np_outputs = outputs.to_numpy() # [xmin, ymin, xmax, ymax, score, id][]
|
| 53 |
gradio_labels = [
|
| 54 |
# List[Tuple[numpy.ndarray | Tuple[int, int, int, int], str]]
|
| 55 |
(
|