precommit
This commit is contained in:
@@ -55,4 +55,3 @@ CUDA_VISIBLE_DEVICES=2 python lerobot/scripts/train.py \
|
|||||||
--policy.type=$POLICY \
|
--policy.type=$POLICY \
|
||||||
--dataset.repo_id=$REPO_ID \
|
--dataset.repo_id=$REPO_ID \
|
||||||
--output_dir=$TRAIN_DIR
|
--output_dir=$TRAIN_DIR
|
||||||
|
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ class SmolVLAPolicy(PreTrainedPolicy):
|
|||||||
)
|
)
|
||||||
# Preprocess image features present in the batch
|
# Preprocess image features present in the batch
|
||||||
for key in present_img_keys:
|
for key in present_img_keys:
|
||||||
img = batch[key][:, i, :, :, :] if batch[key].ndim == 5 else batch[key]
|
img = batch[key][:, -1, :, :, :] if batch[key].ndim == 5 else batch[key]
|
||||||
if self.config.resize_imgs_with_padding is not None:
|
if self.config.resize_imgs_with_padding is not None:
|
||||||
img = resize_with_pad(img, *self.config.resize_imgs_with_padding, pad_value=0)
|
img = resize_with_pad(img, *self.config.resize_imgs_with_padding, pad_value=0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user