Skip to content

Commit

Permalink
robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
brimoor committed May 6, 2024
1 parent ea92ab2 commit 6b600a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fiftyone/utils/coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,12 @@ def close(self, *args):

licenses = _info.get("licenses", [])

categories = _info.get("categories", None)
try:
categories = _info.get("categories", None)
parse_coco_categories(categories)
except:
categories = None

if categories is None:
categories = [
{
Expand Down

0 comments on commit 6b600a8

Please sign in to comment.