Skip to content

Commit

Permalink
Expand dicts in ffhq face detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Inokinoki committed Aug 8, 2024
1 parent d0ad7ee commit 454588e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions giskard_vision/object_detection/dataloaders/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,15 @@ def get_meta(self, idx: int) -> Optional[Dict[str, Any]]:
"faceRectangle_height",
]
return MetaData(
data=meta.data + {k: v for k, v in meta.data.items() if k not in excludes},
data={
**meta.data,
**{k: v for k, v in meta.data.items() if k not in excludes},
},
categories=meta.categories + [c for c in meta.categories if c not in excludes],
issue_groups=meta.issue_groups + {k: v for k, v in meta.issue_groups.items() if k not in excludes},
issue_groups={
**meta.issue_groups,
**{k: v for k, v in meta.issue_groups.items() if k not in excludes},
},
)


Expand Down

0 comments on commit 454588e

Please sign in to comment.