Spaces:
Sleeping
Sleeping
Commit
·
5b4c1b9
1
Parent(s):
f965db0
update readme
Browse files
README.md
CHANGED
@@ -88,12 +88,10 @@ Basic usage example. Add predictions and references via `module.add_batch(predic
|
|
88 |
[10, 16, 6, 10]
|
89 |
]
|
90 |
]
|
91 |
-
|
92 |
>>> references = [
|
93 |
[[10, 15, 20, 20]],
|
94 |
[[30, 30, 5, 6]]
|
95 |
]
|
96 |
-
|
97 |
>>> module.add_batch(predictions=predictions, references=references, predictions_scores=[[0.5,0.3],[0.8, 0.1]])
|
98 |
>>> result = module.compute()
|
99 |
>>> print(result)
|
@@ -123,9 +121,7 @@ We can specify different area range levels, at which we would like to compute th
|
|
123 |
("medium", [6 ** 2, 12 ** 2]),
|
124 |
("large", [12 ** 2, 1e5 ** 2])
|
125 |
]
|
126 |
-
|
127 |
>>> module = evaluate.load("./detection_metric.py", area_ranges_tuples=area_ranges_tuples)
|
128 |
-
|
129 |
>>> predictions = [
|
130 |
[
|
131 |
[10, 15, 5, 5],
|
@@ -134,12 +130,10 @@ We can specify different area range levels, at which we would like to compute th
|
|
134 |
[50, 50, 6, 10]
|
135 |
],
|
136 |
]
|
137 |
-
|
138 |
>>> references = [
|
139 |
[],
|
140 |
[[10, 15, 5, 5]]
|
141 |
]
|
142 |
-
|
143 |
>>> module.add_batch(predictions=predictions, references=references)
|
144 |
>>> result = module.compute()
|
145 |
>>> print(result)
|
|
|
88 |
[10, 16, 6, 10]
|
89 |
]
|
90 |
]
|
|
|
91 |
>>> references = [
|
92 |
[[10, 15, 20, 20]],
|
93 |
[[30, 30, 5, 6]]
|
94 |
]
|
|
|
95 |
>>> module.add_batch(predictions=predictions, references=references, predictions_scores=[[0.5,0.3],[0.8, 0.1]])
|
96 |
>>> result = module.compute()
|
97 |
>>> print(result)
|
|
|
121 |
("medium", [6 ** 2, 12 ** 2]),
|
122 |
("large", [12 ** 2, 1e5 ** 2])
|
123 |
]
|
|
|
124 |
>>> module = evaluate.load("./detection_metric.py", area_ranges_tuples=area_ranges_tuples)
|
|
|
125 |
>>> predictions = [
|
126 |
[
|
127 |
[10, 15, 5, 5],
|
|
|
130 |
[50, 50, 6, 10]
|
131 |
],
|
132 |
]
|
|
|
133 |
>>> references = [
|
134 |
[],
|
135 |
[[10, 15, 5, 5]]
|
136 |
]
|
|
|
137 |
>>> module.add_batch(predictions=predictions, references=references)
|
138 |
>>> result = module.compute()
|
139 |
>>> print(result)
|