Skip to content
Snippets Groups Projects
Commit 071062c7 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Fixed eyes annotation issue

parent 5f423214
No related branches found
No related tags found
1 merge request!89Updates
......@@ -32,8 +32,14 @@ class EyesAnnotations(TransformerMixin, BaseEstimator):
annotated_samples = []
for x in X:
eyes = {
"leye": (find_attribute, (x, "leye_x"), find_attribute(x, "leye_y")),
"reye": (find_attribute(x, "reye_x"), find_attribute(x, "reye_y")),
"leye": (
float(find_attribute(x, "leye_x")),
float(find_attribute(x, "leye_y")),
),
"reye": (
float(find_attribute(x, "reye_x")),
float(find_attribute(x, "reye_y")),
),
}
sample = DelayedSample(x._load, parent=x, annotations=eyes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment