-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase_config.py
More file actions
66 lines (66 loc) · 1.54 KB
/
base_config.py
File metadata and controls
66 lines (66 loc) · 1.54 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import numpy as np
PARAMs = {
"seed": 0,
"isdraw": False,
"isrender": False,
"codec": 'h264',
"framerate": 10,
"robot_r": 0.2,
"dreach": 0.075,
"tolerance": 0.04,
"rreach": 30.0,
"avevel": True,
"target_bias": False,
"gate_ratio": 1 / 3,
"ave_factor": 0.9,
"start_schedule": 100,
"min_lr": 5e-6,
"a": 2,
"b": 1,
"c": 10,
"d": 1,
"e": 1,
"f": 20,
"g": 1,
"eta": 0.5,
"h": 0.5,
"mu": 0.75,
"dmax": 3.0,
"vmax": 1.0,
"tau": 0.5,
"wheel_r": 0.04,
"wheel_d": 0.28,
"gain": 7,
"remix": True,
"rm_middle": 5,
"w": 5,
"tb": -1,
"device": "cuda",
"gamma": 0.99,
"polyak": 0.995,
"lr": 5e-4,
"alpha": 1,
"act_dim": 2,
"max_obs": 16,
"obs_self_dim": 4,
"obs_sur_dim": 10,
"hidden_sizes": [1024, 1024, 1024],
"rnn_state_size": 512,
"rnn_layer": 3,
"bidir": False,
"replay_size": int(1e6),
"batch_size": 1024,
"max_simu_second": 30,
"steps_per_epoch": 20000,
"epochs": 1000,
"update_every": 50,
}
PARAMs["obs_dim"] = PARAMs["obs_self_dim"] + \
PARAMs["max_obs"] * (PARAMs["obs_sur_dim"] + 1)
PARAMs["act_limit"] = np.array(
[PARAMs["vmax"], PARAMs["vmax"]], dtype=np.float32)
PARAMs["max_ep_len"] = int(PARAMs["max_simu_second"] * PARAMs["framerate"])
PARAMs["random_steps"] = PARAMs["max_ep_len"] * 10
PARAMs["update_after"] = PARAMs["max_ep_len"] * 2
PARAMs["total_steps"] = PARAMs["steps_per_epoch"] * PARAMs["epochs"]
PARAMs["nullfill"] = 2 * PARAMs["dmax"]