91 lines
3.3 KiB
YAML
91 lines
3.3 KiB
YAML
defaults:
|
|
- _self_
|
|
- env: pusht
|
|
- policy: diffusion
|
|
|
|
hydra:
|
|
run:
|
|
# Set `dir` to where you would like to save all of the run outputs. If you run another training session
|
|
# with the same value for `dir` its contents will be overwritten unless you set `resume` to true.
|
|
dir: outputs/train/${now:%Y-%m-%d}/${now:%H-%M-%S}_${env.name}_${policy.name}_${hydra.job.name}
|
|
job:
|
|
name: default
|
|
|
|
# Set `resume` to true to resume a previous run. In order for this to work, you will need to make sure
|
|
# `hydra.run.dir` is the directory of an existing run with at least one checkpoint in it.
|
|
# Note that when resuming a run, the default behavior is to use the configuration from the checkpoint,
|
|
# regardless of what's provided with the training command at the time of resumption.
|
|
resume: false
|
|
device: cuda # cpu
|
|
# `use_amp` determines whether to use Automatic Mixed Precision (AMP) for training and evaluation. With AMP,
|
|
# automatic gradient scaling is used.
|
|
use_amp: false
|
|
# `seed` is used for training (eg: model initialization, dataset shuffling)
|
|
# AND for the evaluation environments.
|
|
seed: ???
|
|
# You may provide a list of datasets here. `train.py` creates them all and concatenates them. Note: only data
|
|
# keys common between the datasets are kept. Each dataset gets and additional transform that inserts the
|
|
# "dataset_index" into the returned item. The index mapping is made according to the order in which the
|
|
# datsets are provided.
|
|
dataset_repo_id: lerobot/pusht
|
|
|
|
training:
|
|
offline_steps: ???
|
|
# NOTE: `online_steps` is not implemented yet. It's here as a placeholder.
|
|
online_steps: ???
|
|
online_steps_between_rollouts: ???
|
|
online_sampling_ratio: 0.5
|
|
# `online_env_seed` is used for environments for online training data rollouts.
|
|
online_env_seed: ???
|
|
eval_freq: ???
|
|
save_freq: ???
|
|
log_freq: 250
|
|
save_checkpoint: true
|
|
num_workers: 4
|
|
batch_size: ???
|
|
|
|
eval:
|
|
n_episodes: 1
|
|
# `batch_size` specifies the number of environments to use in a gym.vector.VectorEnv.
|
|
batch_size: 1
|
|
# `use_async_envs` specifies whether to use asynchronous environments (multiprocessing).
|
|
use_async_envs: false
|
|
|
|
wandb:
|
|
enable: false
|
|
# Set to true to disable saving an artifact despite save_checkpoint == True
|
|
disable_artifact: false
|
|
project: lerobot
|
|
notes: ""
|
|
|
|
image_transform:
|
|
# brigthness, contrast, saturation and hue are instances of torchvision Colorjitter, sharpness is an instance of custom class
|
|
enable: true
|
|
# A subset of these transforms will be applied for each batch. This is the maximum size of that subset.
|
|
max_num_transforms: 3
|
|
# Torchvision suggest applying the transforms in the following order : brightness, contrast, saturation, hue
|
|
# sharpness can be applied at any time before or after (we choose after).
|
|
random_order: false
|
|
# Randomply samples transform parameters from the range [min, max]. The weight is used to determine the relative probability of applying the transform.
|
|
brightness:
|
|
weight: 1
|
|
min: 0.8
|
|
max: 1.5
|
|
contrast:
|
|
weight: 1
|
|
min: 0.5
|
|
max: 1.5
|
|
saturation:
|
|
weight: 1
|
|
min: 0.5
|
|
max: 1.5
|
|
# hue is a rotation in degrees. The maximum range is [-0.5, 0.5] but we use [-0.05, 0.05] to avoid extreme unnecessary changes.
|
|
hue:
|
|
weight: 1
|
|
min: -0.0.5
|
|
max: 0.0.5
|
|
sharpness:
|
|
weight: 1
|
|
min: 0.8
|
|
max: 1.8
|