Taking into account situation where visual data is stored as images

This commit is contained in:
CarolinePascal 2025-04-07 19:14:43 +02:00
parent e743f846a7
commit 7c832fa2a7
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ class LeRobotDatasetMetadata:
@property
def audio_camera_keys_mapping(self) -> dict[str, str]:
"""Mapping between camera keys and audio keys when both are linked."""
return {self.features[camera_key]["audio"]:camera_key for camera_key in self.camera_keys if self.features[camera_key]["audio"] is not None}
return {self.features[camera_key]["audio"]:camera_key for camera_key in self.camera_keys if self.features[camera_key]["audio"] is not None and self.features[camera_key]["dtype"] == "video"}
@property
def names(self) -> dict[str, list | dict]: