From the MPII Dataset Download page we can see that keypoints have a visibility flag called is_visible
. This flag indicates if the joint is visible (ocluded) or not. It can take values 0 (not visible) or 1 (visible). However, while exploring the dataset I have found two other scenarios for the state of a keypoint:
Keypoint not in the list: It seems that this means the keypoint is not in the image (not ocluded, but outside of the image).
Not present: the
is_visible
flag is just not there, but just an empty array. If I print the point object's__dict__
attribute I get:
{'_fieldnames': ['id', 'x', 'y', 'is_visible'],
'id': array([[8]], dtype=uint8),
'x': array([[682]], dtype=uint16),
'y': array([[256]], dtype=uint16),
'is_visible': array([], shape=(0, 0), dtype=uint8)}
My question is: Can I safely assume that a not present is_visible
flag means the same as a False Flag?