Skip to content

Commit 7f3444c

Browse files
nit
1 parent 2fdac71 commit 7f3444c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lerobot/common/datasets/push_dataset_to_hub/openx_rlds_format.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,12 @@ def load_from_raw(
208208
ep_dict["episode_index"] = torch.tensor([ep_idx] * num_frames)
209209
ep_dict["frame_index"] = torch.arange(0, num_frames, 1)
210210

211+
image_array_dict = {key: [] for key in image_keys}
212+
211213
for im_key in image_keys:
212214
imgs = episode["observation"][im_key]
213215
image_array_dict[im_key] = [tf_img_convert(img) for img in imgs]
214216

215-
image_array_dict = {key: [] for key in image_keys}
216-
217217
# loop through all cameras
218218
for im_key in image_keys:
219219
img_key = f"observation.images.{im_key}"

0 commit comments

Comments
 (0)