-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdefault_config.py
52 lines (52 loc) · 1.33 KB
/
default_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
DEFAULT_CONFIG = {
# environment
'domain_name': 'cartpole',
'task_name': 'swingup',
'pre_transform_image_size': 128,
'image_size': 100,
'action_repeat': 1,
# replay buffer
'replay_buffer_capacity': 100000,
# train
'agent': 'curl_sac',
'init_steps': 1000,
'num_train_steps': 2000000,
'batch_size': 128, # This is 256 for other sac but experiments show that they don't matter much for curl_sac
'hidden_dim': 1024,
# eval
'eval_freq': 10000,
'num_eval_episodes': 10,
# critic
'critic_lr': 1e-3,
'critic_beta': 0.9,
'critic_tau': 0.01, # try 0.05 or 0.1
'critic_target_update_freq': 2, # try to change it to 1 and retain 0.01 above
# actor
'actor_lr': 1e-3,
'actor_beta': 0.9,
'actor_log_std_min': -10,
'actor_log_std_max': 2,
'actor_update_freq': 2,
# encoder
'encoder_type': 'pixel',
'encoder_feature_dim': 50,
'encoder_lr': 1e-3,
'encoder_tau': 0.05,
'num_layers': 4,
'num_filters': 32,
'curl_latent_dim': 128,
# sac
'discount': 0.99,
'init_temperature': 0.1,
'alpha_lr': 1e-4,
'alpha_beta': 0.5,
'alpha_fixed': False,
# misc
'seed': 1,
'save_tb': False,
'save_buffer': False,
'save_video': False,
'save_model': False,
'detach_encoder': False,
'log_interval': 1
}