precommit
This commit is contained in:
@@ -14,7 +14,7 @@ export WORK=/home/mustafa_shukor
|
|||||||
# export DATA_DIR=$WORK/.cache/huggingface/datasets
|
# export DATA_DIR=$WORK/.cache/huggingface/datasets
|
||||||
# export HF_LEROBOT_HOME=$WORK/.cache/huggingface/lerobot
|
# export HF_LEROBOT_HOME=$WORK/.cache/huggingface/lerobot
|
||||||
|
|
||||||
# export HF_DATASETS_OFFLINE=1
|
# export HF_DATASETS_OFFLINE=1
|
||||||
# export HF_HUB_OFFLINE=1
|
# export HF_HUB_OFFLINE=1
|
||||||
|
|
||||||
# export WANDB_CACHE_DIR=/lustre/fsn1/projects/rech/dyf/ugz83ue/wandb
|
# export WANDB_CACHE_DIR=/lustre/fsn1/projects/rech/dyf/ugz83ue/wandb
|
||||||
@@ -54,5 +54,4 @@ rm -r $TRAIN_DIR
|
|||||||
CUDA_VISIBLE_DEVICES=2 python lerobot/scripts/train.py \
|
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