Spaces:
Build error
Build error
VascoDVRodrigues
commited on
Commit
·
8c59f4c
1
Parent(s):
f12b919
asdf
Browse files
README.md
CHANGED
|
@@ -19,23 +19,6 @@ title: Mot Metrics
|
|
| 19 |
# How to Use
|
| 20 |
|
| 21 |
```python {"id":"01HPS3ASFHPCECERTYN7Z4Z7MN"}
|
| 22 |
-
>>> import numpy as np
|
| 23 |
-
>>> module = evaluate.load("SEA-AI/mot-metrics")
|
| 24 |
-
>>> predicted =[[1,1,10,20,30,40,0.85],[2,1,15,25,35,45,0.78],[2,2,55,65,75,85,0.95]]
|
| 25 |
-
>>> ground_truth = [[1, 1, 10, 20, 30, 40],[2, 1, 15, 25, 35, 45]]
|
| 26 |
-
>>> results = module._compute(predictions=predicted, references=ground_truth, max_iou=0.5)
|
| 27 |
-
>>> results
|
| 28 |
-
{'idf1': 0.8421052631578947, 'idp': 0.8888888888888888,
|
| 29 |
-
'idr': 0.8, 'recall': 0.8, 'precision': 0.8888888888888888,
|
| 30 |
-
'num_unique_objects': 3,'mostly_tracked': 2,
|
| 31 |
-
'partially_tracked': 1, 'mostly_lost': 0,
|
| 32 |
-
'num_false_positives': 1, 'num_misses': 2,
|
| 33 |
-
'num_switches': 0, 'num_fragmentations': 0,
|
| 34 |
-
'mota': 0.7, 'motp': 0.02981870229007634,
|
| 35 |
-
'num_transfer': 0, 'num_ascend': 0,
|
| 36 |
-
'num_migrate': 0}
|
| 37 |
-
|
| 38 |
-
|
| 39 |
>>> import evaluate
|
| 40 |
>>> from seametrics.fo_to_payload.utils import fo_to_payload
|
| 41 |
>>> b = fo_to_payload(
|
|
|
|
| 19 |
# How to Use
|
| 20 |
|
| 21 |
```python {"id":"01HPS3ASFHPCECERTYN7Z4Z7MN"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
>>> import evaluate
|
| 23 |
>>> from seametrics.fo_to_payload.utils import fo_to_payload
|
| 24 |
>>> b = fo_to_payload(
|