fix: aloha_hd5 to LerobotDataset v2 frame appending out of the right scope
This commit is contained in:
parent
d8e4a2ccd7
commit
9a6ca751bb
|
@ -132,7 +132,7 @@ class AlohaHD5Extractor:
|
||||||
frame[feature_id] = torch.from_numpy(image.transpose(2, 0, 1))
|
frame[feature_id] = torch.from_numpy(image.transpose(2, 0, 1))
|
||||||
else:
|
else:
|
||||||
frame[feature_id] = torch.from_numpy(file[feature_name_hd5][frame_idx])
|
frame[feature_id] = torch.from_numpy(file[feature_name_hd5][frame_idx])
|
||||||
frames.append(frame)
|
frames.append(frame)
|
||||||
return frames
|
return frames
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue