Skip to content

Commit

Permalink
Merge pull request #619 from jabooth/lm_float
Browse files Browse the repository at this point in the history
Ensure that LJSON landmarks are read in as floats
  • Loading branch information
jabooth committed Aug 3, 2015
2 parents ae8a4f7 + c840792 commit 40af993
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion menpo/io/input/landmark.py
Expand Up @@ -291,7 +291,8 @@ def _parse_format(self, asset=None):
def _ljson_parse_null_values(points_list):
filtered_points = [np.nan if x is None else x
for x in itertools.chain(*points_list)]
return np.array(filtered_points).reshape([-1, len(points_list[0])])
return np.array(filtered_points,
dtype=np.float).reshape([-1, len(points_list[0])])


def _parse_ljson_v1(lms_dict):
Expand Down

0 comments on commit 40af993

Please sign in to comment.