Skip to content

Commit 575f16f

Browse files
authored
fix-mpii-warning (#506)
* fix-mpii-warning * google style
1 parent 2ad9d8d commit 575f16f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tensorlayer/files.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,9 @@ def save_joints():
13991399
head_x2s = anno['annorect']['x2'][0]
14001400
head_y2s = anno['annorect']['y2'][0]
14011401
for annopoint, head_x1, head_y1, head_x2, head_y2 in zip(annopoints, head_x1s, head_y1s, head_x2s, head_y2s):
1402-
if annopoint != []:
1402+
# if annopoint != []:
1403+
# if len(annopoint) != 0:
1404+
if annopoint.size:
14031405
head_rect = [float(head_x1[0, 0]), float(head_y1[0, 0]), float(head_x2[0, 0]), float(head_y2[0, 0])]
14041406

14051407
# joint coordinates

0 commit comments

Comments
 (0)