Skip to content

Commit

Permalink
MPII Human Pose Dataset upload example using v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchitvj committed Dec 20, 2020
1 parent d6abe91 commit bad6627
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions examples/mpii_data_upload_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,29 +67,29 @@ def get_anno(jsonfile):

def mpii_transform(annotation):
return {

"image": np.array(Image.open(img_path + annotation["img_paths"])),

"isValidation": np.array(annotation["isValidation"]),

"img_paths": annotation["img_paths"],

"img_width": np.array(annotation["img_width"]),

"img_height": np.array(annotation["img_height"]),

"objpos": np.array(annotation["objpos"]),

"joint_self": np.array(annotation["joint_self"]),

"scale_provided": np.array(annotation["scale_provided"]),

"annolist_index": np.array(annotation["annolist_index"]),

"people_index": np.array(annotation["people_index"]),

"numOtherPeople": np.array(annotation["numOtherPeople"]),

}


Expand Down

0 comments on commit bad6627

Please sign in to comment.