Spaces:
Sleeping
Sleeping
bascobasculino
commited on
Commit
•
f5e154d
1
Parent(s):
b7d7aaa
- my_metricv2.py +3 -20
my_metricv2.py
CHANGED
@@ -72,29 +72,12 @@ class MyMetricv2(evaluate.Metric):
|
|
72 |
inputs_description=_KWARGS_DESCRIPTION,
|
73 |
# This defines the format of each prediction and reference
|
74 |
features=datasets.Features({
|
75 |
-
"predictions":
|
76 |
-
datasets.Features(
|
77 |
-
{
|
78 |
-
"scores": datasets.Sequence(datasets.Value("float")),
|
79 |
-
"ids": datasets.Sequence(datasets.Value("int64")),
|
80 |
-
"frames": datasets.Sequence(datasets.Value("int64")),
|
81 |
-
"boxes": datasets.Sequence(
|
82 |
datasets.Sequence(datasets.Value("float"))
|
83 |
),
|
84 |
-
|
85 |
-
)
|
86 |
-
],
|
87 |
-
"references": [
|
88 |
-
datasets.Features(
|
89 |
-
{
|
90 |
-
"ids": datasets.Sequence(datasets.Value("int64")),
|
91 |
-
"frames": datasets.Sequence(datasets.Value("int64")),
|
92 |
-
"boxes": datasets.Sequence(
|
93 |
datasets.Sequence(datasets.Value("float"))
|
94 |
-
)
|
95 |
-
}
|
96 |
-
)
|
97 |
-
],
|
98 |
}),
|
99 |
# Homepage of the module for documentation
|
100 |
homepage="http://module.homepage",
|
|
|
72 |
inputs_description=_KWARGS_DESCRIPTION,
|
73 |
# This defines the format of each prediction and reference
|
74 |
features=datasets.Features({
|
75 |
+
"predictions": datasets.Sequence(
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
datasets.Sequence(datasets.Value("float"))
|
77 |
),
|
78 |
+
"references": datasets.Sequence(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
datasets.Sequence(datasets.Value("float"))
|
80 |
+
)
|
|
|
|
|
|
|
81 |
}),
|
82 |
# Homepage of the module for documentation
|
83 |
homepage="http://module.homepage",
|