We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fdac71 commit 7f3444cCopy full SHA for 7f3444c
lerobot/common/datasets/push_dataset_to_hub/openx_rlds_format.py
@@ -208,12 +208,12 @@ def load_from_raw(
208
ep_dict["episode_index"] = torch.tensor([ep_idx] * num_frames)
209
ep_dict["frame_index"] = torch.arange(0, num_frames, 1)
210
211
+ image_array_dict = {key: [] for key in image_keys}
212
+
213
for im_key in image_keys:
214
imgs = episode["observation"][im_key]
215
image_array_dict[im_key] = [tf_img_convert(img) for img in imgs]
216
- image_array_dict = {key: [] for key in image_keys}
-
217
# loop through all cameras
218
219
img_key = f"observation.images.{im_key}"
0 commit comments