kevinconka commited on
Commit
e49a2f4
1 Parent(s): bd044ed

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -17
README.md CHANGED
@@ -3,35 +3,39 @@ 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
10
  version: v3
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.fo_utils.utils import fo_to_payload
24
- >>> b = fo_to_payload(
25
- >>> dataset="SENTRY_VIDEOS_DATASET_QA",
26
- >>> gt_field="ground_truth_det",
27
- >>> models=['volcanic-sweep-3_02_2023_N_LN1_ep288_TRACKER'],
28
- >>> sequence_list=["Sentry_2022_11_PROACT_CELADON_7.5M_MOB_2022_11_25_12_12_39"],
29
- >>> tracking_mode=True
30
- >>> )
31
- >>> module = evaluate.load("SEA-AI/user-friendly-metrics")
32
- >>> res = module._calculate(b, max_iou=0.99, recognition_thresholds=[0.3, 0.5, 0.8])
33
- >>> print(res)
 
 
 
34
  ```
 
35
  ```
36
  global:
37
  ahoy-IR-b2-whales__XAVIER-AGX-JP46_TRACKER:
@@ -197,4 +201,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
10
  version: v3
11
  sdk: gradio
12
+ sdk_version: 5.6.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",
28
+ models=["frames.cerulean-level-17_11_2023_RL_SPLIT_ep147_TRACKER"],
29
+ # sequence_list=["Sentry_2022_11_PROACT_CELADON_7.5M_MOB_2022_11_25_12_12_39"],
30
+ tags=["GT_ID_FUSION"],
31
+ tracking_mode=True
32
+ ).payload
33
+
34
+ module = evaluate.load("SEA-AI/user-friendly-metrics")
35
+ res = module.calculate(payload, max_iou=1e-10, recognition_thresholds=[0.3, 0.5, 0.8])
36
+ print(res)
37
  ```
38
+
39
  ```
40
  global:
41
  ahoy-IR-b2-whales__XAVIER-AGX-JP46_TRACKER:
 
201
 
202
  ## Further References
203
 
204
+ - [Github Repository - py-motmetrics](https://github.com/cheind/py-motmetrics/tree/develop)