Skip to content
Snippets Groups Projects
Commit 249b7072 authored by Laurent COLBOIS's avatar Laurent COLBOIS
Browse files

Permute x and y coordinates in annotation loaders

parent 478a60ab
No related branches found
No related tags found
1 merge request!100Resolve "EyesAnnotations ordering of x & y coordinates is wrong"
...@@ -34,12 +34,12 @@ class EyesAnnotations(TransformerMixin, BaseEstimator): ...@@ -34,12 +34,12 @@ class EyesAnnotations(TransformerMixin, BaseEstimator):
for x in X: for x in X:
eyes = { eyes = {
"leye": ( "leye": (
float(find_attribute(x, "leye_x")),
float(find_attribute(x, "leye_y")), float(find_attribute(x, "leye_y")),
float(find_attribute(x, "leye_x")),
), ),
"reye": ( "reye": (
float(find_attribute(x, "reye_x")),
float(find_attribute(x, "reye_y")), float(find_attribute(x, "reye_y")),
float(find_attribute(x, "reye_x")),
), ),
} }
...@@ -69,12 +69,12 @@ class MultiposeAnnotations(TransformerMixin, BaseEstimator): ...@@ -69,12 +69,12 @@ class MultiposeAnnotations(TransformerMixin, BaseEstimator):
# Normal profile # Normal profile
annotations = { annotations = {
"leye": ( "leye": (
float(find_attribute(x, "leye_x")),
float(find_attribute(x, "leye_y")), float(find_attribute(x, "leye_y")),
float(find_attribute(x, "leye_x")),
), ),
"reye": ( "reye": (
float(find_attribute(x, "reye_x")),
float(find_attribute(x, "reye_y")), float(find_attribute(x, "reye_y")),
float(find_attribute(x, "reye_x")),
), ),
} }
elif ( elif (
...@@ -83,12 +83,12 @@ class MultiposeAnnotations(TransformerMixin, BaseEstimator): ...@@ -83,12 +83,12 @@ class MultiposeAnnotations(TransformerMixin, BaseEstimator):
# Left profile # Left profile
annotations = { annotations = {
"leye": ( "leye": (
float(find_attribute(x, "leye_x")),
float(find_attribute(x, "leye_y")), float(find_attribute(x, "leye_y")),
float(find_attribute(x, "leye_x")),
), ),
"mouth": ( "mouth": (
float(find_attribute(x, "mouthl_x")),
float(find_attribute(x, "mouthl_y")), float(find_attribute(x, "mouthl_y")),
float(find_attribute(x, "mouthl_x")),
), ),
} }
elif ( elif (
...@@ -97,12 +97,12 @@ class MultiposeAnnotations(TransformerMixin, BaseEstimator): ...@@ -97,12 +97,12 @@ class MultiposeAnnotations(TransformerMixin, BaseEstimator):
# Right profile # Right profile
annotations = { annotations = {
"reye": ( "reye": (
float(find_attribute(x, "reye_x")),
float(find_attribute(x, "reye_y")), float(find_attribute(x, "reye_y")),
float(find_attribute(x, "reye_x")),
), ),
"mouth": ( "mouth": (
float(find_attribute(x, "mouthr_x")),
float(find_attribute(x, "mouthr_y")), float(find_attribute(x, "mouthr_y")),
float(find_attribute(x, "mouthr_x")),
), ),
} }
else: else:
......
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