fix(datasets): skip warning when MultiLeRobotDataset features are identical (#3019)

Co-authored-by: Steven Palma <imstevenpmwork@ieee.org>
This commit is contained in:
Michio Sun
2026-02-27 01:42:22 +09:00
committed by GitHub
parent fde9d08281
commit 4e54be1334

View File

@@ -1771,11 +1771,12 @@ class MultiLeRobotDataset(torch.utils.data.Dataset):
)
for repo_id, ds in zip(self.repo_ids, self._datasets, strict=True):
extra_keys = set(ds.features).difference(intersection_features)
logging.warning(
f"keys {extra_keys} of {repo_id} were disabled as they are not contained in all the "
"other datasets."
)
self.disabled_features.update(extra_keys)
if extra_keys:
logging.warning(
f"keys {extra_keys} of {repo_id} were disabled as they are not contained in all the "
"other datasets."
)
self.disabled_features.update(extra_keys)
self.image_transforms = image_transforms
self.delta_timestamps = delta_timestamps