Taking into account situation where visual data is stored as images
This commit is contained in:
parent
e743f846a7
commit
7c832fa2a7
|
@ -210,7 +210,7 @@ class LeRobotDatasetMetadata:
|
||||||
@property
|
@property
|
||||||
def audio_camera_keys_mapping(self) -> dict[str, str]:
|
def audio_camera_keys_mapping(self) -> dict[str, str]:
|
||||||
"""Mapping between camera keys and audio keys when both are linked."""
|
"""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
|
@property
|
||||||
def names(self) -> dict[str, list | dict]:
|
def names(self) -> dict[str, list | dict]:
|
||||||
|
|
Loading…
Reference in New Issue