diff --git a/lerobot/common/datasets/push_dataset_to_hub/openx_rlds_format.py b/lerobot/common/datasets/push_dataset_to_hub/openx_rlds_format.py index 27a94f5f5..1f8a5d144 100644 --- a/lerobot/common/datasets/push_dataset_to_hub/openx_rlds_format.py +++ b/lerobot/common/datasets/push_dataset_to_hub/openx_rlds_format.py @@ -202,7 +202,7 @@ def load_from_raw( # If lang_key is present, convert the entire tensor at once if lang_key is not None: - ep_dict["language_instruction"] = [str(x) for x in episode[lang_key]] + ep_dict["language_instruction"] = [x.numpy().decode("utf-8") for x in episode[lang_key]] ep_dict["timestamp"] = torch.arange(0, num_frames, 1) / fps ep_dict["episode_index"] = torch.tensor([ep_idx] * num_frames)