IliaLarchenko commited on
Commit
febbb47
·
verified ·
1 Parent(s): 1140640

Create train_config.json

Browse files
Files changed (1) hide show
  1. train_config.json +284 -0
train_config.json ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "lerobot/pusht",
4
+ "episodes": null,
5
+ "image_transforms": {
6
+ "enable": false,
7
+ "max_num_transforms": 3,
8
+ "random_order": false,
9
+ "tfs": {
10
+ "brightness": {
11
+ "weight": 1.0,
12
+ "type": "ColorJitter",
13
+ "kwargs": {
14
+ "brightness": [
15
+ 0.8,
16
+ 1.2
17
+ ]
18
+ }
19
+ },
20
+ "contrast": {
21
+ "weight": 1.0,
22
+ "type": "ColorJitter",
23
+ "kwargs": {
24
+ "contrast": [
25
+ 0.8,
26
+ 1.2
27
+ ]
28
+ }
29
+ },
30
+ "saturation": {
31
+ "weight": 1.0,
32
+ "type": "ColorJitter",
33
+ "kwargs": {
34
+ "saturation": [
35
+ 0.5,
36
+ 1.5
37
+ ]
38
+ }
39
+ },
40
+ "hue": {
41
+ "weight": 1.0,
42
+ "type": "ColorJitter",
43
+ "kwargs": {
44
+ "hue": [
45
+ -0.05,
46
+ 0.05
47
+ ]
48
+ }
49
+ },
50
+ "sharpness": {
51
+ "weight": 1.0,
52
+ "type": "SharpnessJitter",
53
+ "kwargs": {
54
+ "sharpness": [
55
+ 0.5,
56
+ 1.5
57
+ ]
58
+ }
59
+ }
60
+ }
61
+ },
62
+ "local_files_only": false,
63
+ "use_imagenet_stats": true,
64
+ "video_backend": "pyav"
65
+ },
66
+ "env": {
67
+ "type": "pusht",
68
+ "task": "PushT-v0",
69
+ "fps": 10,
70
+ "features": {
71
+ "action": {
72
+ "type": "ACTION",
73
+ "shape": [
74
+ 2
75
+ ]
76
+ },
77
+ "agent_pos": {
78
+ "type": "STATE",
79
+ "shape": [
80
+ 2
81
+ ]
82
+ },
83
+ "pixels": {
84
+ "type": "VISUAL",
85
+ "shape": [
86
+ 384,
87
+ 384,
88
+ 3
89
+ ]
90
+ }
91
+ },
92
+ "features_map": {
93
+ "action": "action",
94
+ "agent_pos": "observation.state",
95
+ "environment_state": "observation.environment_state",
96
+ "pixels": "observation.image"
97
+ },
98
+ "episode_length": 300,
99
+ "obs_type": "pixels_agent_pos",
100
+ "render_mode": "rgb_array",
101
+ "visualization_width": 384,
102
+ "visualization_height": 384
103
+ },
104
+ "policy": {
105
+ "type": "dot",
106
+ "n_obs_steps": 3,
107
+ "normalization_mapping": {
108
+ "VISUAL": "MEAN_STD",
109
+ "STATE": "MIN_MAX",
110
+ "ENV": "MIN_MAX",
111
+ "ACTION": "MIN_MAX"
112
+ },
113
+ "input_features": {
114
+ "observation.image": {
115
+ "type": "VISUAL",
116
+ "shape": [
117
+ 3,
118
+ 96,
119
+ 96
120
+ ]
121
+ },
122
+ "observation.state": {
123
+ "type": "STATE",
124
+ "shape": [
125
+ 2
126
+ ]
127
+ }
128
+ },
129
+ "output_features": {
130
+ "action": {
131
+ "type": "ACTION",
132
+ "shape": [
133
+ 2
134
+ ]
135
+ }
136
+ },
137
+ "train_horizon": 20,
138
+ "inference_horizon": 20,
139
+ "lookback_obs_steps": 10,
140
+ "lookback_aug": 5,
141
+ "override_dataset_stats": false,
142
+ "new_dataset_stats": {
143
+ "action": {
144
+ "max": [
145
+ 512.0,
146
+ 512.0
147
+ ],
148
+ "min": [
149
+ 0.0,
150
+ 0.0
151
+ ]
152
+ },
153
+ "observation.environment_state": {
154
+ "max": [
155
+ 512.0,
156
+ 512.0,
157
+ 512.0,
158
+ 512.0,
159
+ 512.0,
160
+ 512.0,
161
+ 512.0,
162
+ 512.0,
163
+ 512.0,
164
+ 512.0,
165
+ 512.0,
166
+ 512.0,
167
+ 512.0,
168
+ 512.0,
169
+ 512.0,
170
+ 512.0
171
+ ],
172
+ "min": [
173
+ 0.0,
174
+ 0.0,
175
+ 0.0,
176
+ 0.0,
177
+ 0.0,
178
+ 0.0,
179
+ 0.0,
180
+ 0.0,
181
+ 0.0,
182
+ 0.0,
183
+ 0.0,
184
+ 0.0,
185
+ 0.0,
186
+ 0.0,
187
+ 0.0,
188
+ 0.0
189
+ ]
190
+ },
191
+ "observation.state": {
192
+ "max": [
193
+ 512.0,
194
+ 512.0
195
+ ],
196
+ "min": [
197
+ 0.0,
198
+ 0.0
199
+ ]
200
+ }
201
+ },
202
+ "vision_backbone": "resnet18",
203
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
204
+ "pre_norm": true,
205
+ "lora_rank": 20,
206
+ "merge_lora": false,
207
+ "dim_model": 128,
208
+ "n_heads": 8,
209
+ "dim_feedforward": 512,
210
+ "n_decoder_layers": 8,
211
+ "rescale_shape": [
212
+ 96,
213
+ 96
214
+ ],
215
+ "crop_scale": 1.0,
216
+ "state_noise": 0.01,
217
+ "noise_decay": 0.999995,
218
+ "dropout": 0.1,
219
+ "alpha": 0.75,
220
+ "train_alpha": 0.9,
221
+ "predict_every_n": 1,
222
+ "return_every_n": 2,
223
+ "optimizer_lr": 0.0001,
224
+ "optimizer_min_lr": 0.0001,
225
+ "optimizer_lr_cycle_steps": 300000,
226
+ "optimizer_weight_decay": 1e-05
227
+ },
228
+ "output_dir": "outputs/train/pusht_images",
229
+ "job_name": "pusht_dot",
230
+ "resume": false,
231
+ "device": "cuda",
232
+ "use_amp": true,
233
+ "seed": 100000,
234
+ "num_workers": 24,
235
+ "batch_size": 24,
236
+ "eval_freq": 10000,
237
+ "log_freq": 1000,
238
+ "save_checkpoint": true,
239
+ "save_freq": 50,
240
+ "offline": {
241
+ "steps": 1000000
242
+ },
243
+ "online": {
244
+ "steps": 0,
245
+ "rollout_n_episodes": 1,
246
+ "rollout_batch_size": 1,
247
+ "steps_between_rollouts": null,
248
+ "sampling_ratio": 0.5,
249
+ "env_seed": null,
250
+ "buffer_capacity": null,
251
+ "buffer_seed_size": 0,
252
+ "do_rollout_async": false
253
+ },
254
+ "use_policy_training_preset": true,
255
+ "optimizer": {
256
+ "type": "adamw",
257
+ "lr": 0.0001,
258
+ "weight_decay": 1e-05,
259
+ "grad_clip_norm": 10.0,
260
+ "betas": [
261
+ 0.9,
262
+ 0.999
263
+ ],
264
+ "eps": 1e-08
265
+ },
266
+ "scheduler": {
267
+ "type": "cosine_annealing",
268
+ "num_warmup_steps": 0,
269
+ "min_lr": 0.0001,
270
+ "T_max": 300000
271
+ },
272
+ "eval": {
273
+ "n_episodes": 50,
274
+ "batch_size": 50,
275
+ "use_async_envs": false
276
+ },
277
+ "wandb": {
278
+ "enable": true,
279
+ "disable_artifact": false,
280
+ "project": "pusht",
281
+ "entity": null,
282
+ "notes": null
283
+ }
284
+ }