fix test_case

pull/191/head
wenmeng.zwm 2022-09-08 21:55:13 +08:00
parent 852bbee48e
commit 0de3bc1521
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class HandCocoPoseSourceCocoTest(unittest.TestCase):
img_prefix=f'{SMALL_COCO_WHOLE_BODY_HAND_ROOT}/train2017/')
index_list = random.choices(list(range(4)), k=3)
for idx in index_list:
data = data_source.get_sample(idx)
data = data_source[idx]
self.assertIn('image_file', data)
self.assertIn('image_id', data)
self.assertIn('bbox_score', data)