Support for converting OpenX datasets from RLDS format to LeRobotDataset (#354)

Signed-off-by: youliangtan <tan_you_liang@hotmail.com>
Co-authored-by: Simon Alibert <alibert.sim@gmail.com>
Co-authored-by: youliangtan <tan_you_liang@hotmail.com>
Co-authored-by: Remi <re.cadene@gmail.com>
This commit is contained in:
Michel Aractingi
2024-08-27 09:07:00 +02:00
committed by GitHub
parent aad59e6b6b
commit eb4c505cff
12 changed files with 2329 additions and 6 deletions

View File

@@ -40,6 +40,10 @@ def get_stats_einops_patterns(dataset, num_workers=0):
stats_patterns = {}
for key, feats_type in dataset.features.items():
# NOTE: skip language_instruction embedding in stats computation
if key == "language_instruction":
continue
# sanity check that tensors are not float64
assert batch[key].dtype != torch.float64