-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
53 lines (43 loc) · 1.5 KB
/
main.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
53
from utils.env_utils import Config
import hydra
from hydra.core.config_store import ConfigStore
from omegaconf import OmegaConf
@hydra.main(version_base="1.2", config_path="configs/", config_name="config")
def main(config: Config) -> None:
# QDAC-MB
if config.algo.name == "qdac_mb":
import main_qdac_mb as main
# QDAC
elif config.algo.name == "qdac":
import main_qdac as main
# Ablations
## Ours with feat-based/timestep-based skill (separable skill)
elif config.algo.name == "qdac_mb_no_sf":
import main_qdac_mb as main
## Ours with fixed lambda (still using main script with different config)
elif config.algo.name == "qdac_mb_fixed_lambda":
import main_qdac_mb as main
## UVFA (still using main script with different config)
elif config.algo.name == "uvfa":
import main_qdac_mb as main
# QD
elif config.algo.name == "qd_pg":
import main_qd_pg as main
elif config.algo.name == "dcg_me":
import main_dcg_me as main
elif config.algo.name == "ppga":
import main_ppga as main
# URL
elif config.algo.name == "domino":
import main_domino as main
elif config.algo.name == "smerl":
import main_smerl as main
elif config.algo.name == "smerl_reverse":
import main_smerl_reverse as main
else:
raise NotImplementedError
main.main(config)
if __name__ == "__main__":
cs = ConfigStore.instance()
cs.store(name="main", node=Config)
main()