Skip to content

Commit

Permalink
fixed bug in lang_instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-aractingi committed Dec 2, 2024
1 parent dd18847 commit 302df10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 302df10

Please sign in to comment.