Spaces:
Build error
Build error
Merge branch 'main' of https://huggingface.co/spaces/SEA-AI/user-friendly-metrics into main
Browse files
README.md
CHANGED
|
@@ -3,7 +3,7 @@ app_file: app.py
|
|
| 3 |
colorFrom: yellow
|
| 4 |
colorTo: green
|
| 5 |
description: 'TODO: add a description here'
|
| 6 |
-
emoji:
|
| 7 |
pinned: false
|
| 8 |
runme:
|
| 9 |
id: 01HPS3ASFJXVQR88985QNSXVN1
|
|
@@ -11,147 +11,74 @@ runme:
|
|
| 11 |
sdk: gradio
|
| 12 |
sdk_version: 4.36.0
|
| 13 |
tags:
|
| 14 |
-
|
| 15 |
-
|
| 16 |
title: user-friendly-metrics
|
| 17 |
---
|
| 18 |
|
| 19 |
# How to Use
|
| 20 |
|
| 21 |
```python {"id":"01HPS3ASFHPCECERTYN7Z4Z7MN"}
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
| 35 |
```
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
tp: 3843.0
|
| 81 |
-
small:
|
| 82 |
-
f1: 0.10373582388258838
|
| 83 |
-
fn: 285.0
|
| 84 |
-
fp: 5089.0
|
| 85 |
-
num_gt_ids: 6
|
| 86 |
-
precision: 0.05759259259259259
|
| 87 |
-
recall: 0.5218120805369127
|
| 88 |
-
recognition_0.3: 0.3333333333333333
|
| 89 |
-
recognition_0.5: 0.3333333333333333
|
| 90 |
-
recognition_0.8: 0.16666666666666666
|
| 91 |
-
recognized_0.3: 2
|
| 92 |
-
recognized_0.5: 2
|
| 93 |
-
recognized_0.8: 1
|
| 94 |
-
tp: 311.0
|
| 95 |
-
per_sequence:
|
| 96 |
-
Sentry_2022_12_19_Romania_2022_12_19_17_09_34:
|
| 97 |
-
ahoy-IR-b2-whales__XAVIER-AGX-JP46_TRACKER:
|
| 98 |
-
all:
|
| 99 |
-
f1: 0.8262651742077881
|
| 100 |
-
fn: 2045.0
|
| 101 |
-
fp: 159.0
|
| 102 |
-
num_gt_ids: 13
|
| 103 |
-
precision: 0.9705555555555555
|
| 104 |
-
recall: 0.7193247323634367
|
| 105 |
-
recognition_0.3: 0.9230769230769231
|
| 106 |
-
recognition_0.5: 0.8461538461538461
|
| 107 |
-
recognition_0.8: 0.46153846153846156
|
| 108 |
-
recognized_0.3: 12
|
| 109 |
-
recognized_0.5: 11
|
| 110 |
-
recognized_0.8: 6
|
| 111 |
-
tp: 5241.0
|
| 112 |
-
area:
|
| 113 |
-
large:
|
| 114 |
-
f1: 0.4053050397877984
|
| 115 |
-
fn: 612.0
|
| 116 |
-
fp: 3872.0
|
| 117 |
-
num_gt_ids: 6
|
| 118 |
-
precision: 0.28296296296296297
|
| 119 |
-
recall: 0.7140186915887851
|
| 120 |
-
recognition_0.3: 0.8333333333333334
|
| 121 |
-
recognition_0.5: 0.8333333333333334
|
| 122 |
-
recognition_0.8: 0.3333333333333333
|
| 123 |
-
recognized_0.3: 5
|
| 124 |
-
recognized_0.5: 5
|
| 125 |
-
recognized_0.8: 2
|
| 126 |
-
tp: 1528.0
|
| 127 |
-
medium:
|
| 128 |
-
f1: 0.7398209644816635
|
| 129 |
-
fn: 1146.0
|
| 130 |
-
fp: 1557.0
|
| 131 |
-
num_gt_ids: 10
|
| 132 |
-
precision: 0.7116666666666667
|
| 133 |
-
recall: 0.7702946482260974
|
| 134 |
-
recognition_0.3: 1.0
|
| 135 |
-
recognition_0.5: 0.8
|
| 136 |
-
recognition_0.8: 0.6
|
| 137 |
-
recognized_0.3: 10
|
| 138 |
-
recognized_0.5: 8
|
| 139 |
-
recognized_0.8: 6
|
| 140 |
-
tp: 3843.0
|
| 141 |
-
small:
|
| 142 |
-
f1: 0.10373582388258838
|
| 143 |
-
fn: 285.0
|
| 144 |
-
fp: 5089.0
|
| 145 |
-
num_gt_ids: 6
|
| 146 |
-
precision: 0.05759259259259259
|
| 147 |
-
recall: 0.5218120805369127
|
| 148 |
-
recognition_0.3: 0.3333333333333333
|
| 149 |
-
recognition_0.5: 0.3333333333333333
|
| 150 |
-
recognition_0.8: 0.16666666666666666
|
| 151 |
-
recognized_0.3: 2
|
| 152 |
-
recognized_0.5: 2
|
| 153 |
-
recognized_0.8: 1
|
| 154 |
-
tp: 311.0
|
| 155 |
```
|
| 156 |
|
| 157 |
## Metric Settings
|
|
@@ -197,4 +124,4 @@ year={2016}}
|
|
| 197 |
|
| 198 |
## Further References
|
| 199 |
|
| 200 |
-
- [Github Repository - py-motmetrics](https://github.com/cheind/py-motmetrics/tree/develop)
|
|
|
|
| 3 |
colorFrom: yellow
|
| 4 |
colorTo: green
|
| 5 |
description: 'TODO: add a description here'
|
| 6 |
+
emoji: 🤑
|
| 7 |
pinned: false
|
| 8 |
runme:
|
| 9 |
id: 01HPS3ASFJXVQR88985QNSXVN1
|
|
|
|
| 11 |
sdk: gradio
|
| 12 |
sdk_version: 4.36.0
|
| 13 |
tags:
|
| 14 |
+
- evaluate
|
| 15 |
+
- metric
|
| 16 |
title: user-friendly-metrics
|
| 17 |
---
|
| 18 |
|
| 19 |
# How to Use
|
| 20 |
|
| 21 |
```python {"id":"01HPS3ASFHPCECERTYN7Z4Z7MN"}
|
| 22 |
+
import evaluate
|
| 23 |
+
from seametrics.payload.processor import PayloadProcessor
|
| 24 |
+
|
| 25 |
+
payload = PayloadProcessor(
|
| 26 |
+
dataset_name="SENTRY_VIDEOS_DATASET_QA",
|
| 27 |
+
gt_field="ground_truth_det_fused_id",
|
| 28 |
+
models=["ahoy_IR_b2_engine_3_7_0_757_g8765b007_oversea"],
|
| 29 |
+
sequence_list=["Sentry_2023_02_08_PROACT_CELADON_@6m_MOB_2023_02_08_14_41_51"],
|
| 30 |
+
# tags=["GT_ID_FUSION"],
|
| 31 |
+
tracking_mode=True
|
| 32 |
+
).payload
|
| 33 |
+
|
| 34 |
+
module = evaluate.load("SEA-AI/user-friendly-metrics")
|
| 35 |
+
res = module._compute(payload, max_iou=0.5, recognition_thresholds=[0.3, 0.5, 0.8])
|
| 36 |
+
print(res)
|
| 37 |
```
|
| 38 |
+
|
| 39 |
+
```json
|
| 40 |
+
{
|
| 41 |
+
"global": {
|
| 42 |
+
"ahoy_IR_b2_engine_3_6_0_49_gd81d3b63_oversea": {
|
| 43 |
+
"all": {
|
| 44 |
+
"f1": 0.15967351103175614,
|
| 45 |
+
"fn": 2923.0,
|
| 46 |
+
"fp": 3666.0,
|
| 47 |
+
"num_gt_ids": 10,
|
| 48 |
+
"precision": 0.14585274930102515,
|
| 49 |
+
"recall": 0.1763877148492533,
|
| 50 |
+
"recognition_0.3": 0.1,
|
| 51 |
+
"recognition_0.5": 0.1,
|
| 52 |
+
"recognition_0.8": 0.1,
|
| 53 |
+
"recognized_0.3": 1,
|
| 54 |
+
"recognized_0.5": 1,
|
| 55 |
+
"recognized_0.8": 1,
|
| 56 |
+
"tp": 626.0
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
},
|
| 60 |
+
"per_sequence": {
|
| 61 |
+
"Sentry_2023_02_08_PROACT_CELADON_@6m_MOB_2023_02_08_12_51_49": {
|
| 62 |
+
"ahoy_IR_b2_engine_3_6_0_49_gd81d3b63_oversea": {
|
| 63 |
+
"all": {
|
| 64 |
+
"f1": 0.15967351103175614,
|
| 65 |
+
"fn": 2923.0,
|
| 66 |
+
"fp": 3666.0,
|
| 67 |
+
"num_gt_ids": 10,
|
| 68 |
+
"precision": 0.14585274930102515,
|
| 69 |
+
"recall": 0.1763877148492533,
|
| 70 |
+
"recognition_0.3": 0.1,
|
| 71 |
+
"recognition_0.5": 0.1,
|
| 72 |
+
"recognition_0.8": 0.1,
|
| 73 |
+
"recognized_0.3": 1,
|
| 74 |
+
"recognized_0.5": 1,
|
| 75 |
+
"recognized_0.8": 1,
|
| 76 |
+
"tp": 626.0
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
```
|
| 83 |
|
| 84 |
## Metric Settings
|
|
|
|
| 124 |
|
| 125 |
## Further References
|
| 126 |
|
| 127 |
+
- [Github Repository - py-motmetrics](https://github.com/cheind/py-motmetrics/tree/develop)
|