dgs.models.dataset.posetrack21.validate_pt21_json¶
- dgs.models.dataset.posetrack21.validate_pt21_json(json: dict) None [source]¶
Check whether the given json is valid for the PoseTrack21 dataset.
- Parameters:
json (dict) – The content of the loaded json file as dictionary.
- Raises:
ValueError – If json is not a dict.
KeyError – If json does not contain keys for ‘images’ or ‘annotations’.