Skip to content

Commit

Permalink
fix(opendataset): correct wrong visual status for LIP dataset
Browse files Browse the repository at this point in the history
PR Closed: #1026
  • Loading branch information
yuanzhu.zhan authored and marshallmallows committed Sep 27, 2021
1 parent c378364 commit 5fe4663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorbay/opendataset/LIP/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _get_data(keypoints_info: List[str], image_path: str, parsing_path: str) ->
keypoints = LabeledKeypoints2D()
for x, y, v in chunked(islice(keypoints_info, 1, None), 3):
keypoints.append(
Keypoint2D(float(x), float(y), int(v)) if x.isnumeric() else Keypoint2D(0, 0, 0)
Keypoint2D(float(x), float(y), 1 - int(v)) if x.isnumeric() else Keypoint2D(0, 0, 0)
)
label.keypoints2d = [keypoints]
return data

0 comments on commit 5fe4663

Please sign in to comment.