Skip to content

Commit

Permalink
fix infer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
flytocc committed May 8, 2023
1 parent f8c2a8b commit d303e83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ppdet/data/source/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ def get_categories(metric_type, anno_file=None, arch=None):
elif metric_type.lower() == 'widerface':
return _widerface_category()

elif metric_type.lower() == 'keypointtopdowncocoeval' or metric_type.lower(
) == 'keypointtopdownmpiieval':
elif metric_type.lower() in ['keypointtopdowncocoeval',
'keypointtopdownmpiieval',
'keypointtopdowncocowholebadyhandeval']:
return (None, {'id': 'keypoint'})

elif metric_type.lower() == 'pose3deval':
Expand Down

0 comments on commit d303e83

Please sign in to comment.