|
28 | 28 | # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
29 | 29 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
30 | 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
31 | | -import logging |
32 | | -import os |
33 | | -from datetime import datetime |
34 | | - |
35 | | -# noinspection PyUnresolvedReferences |
36 | | -import isaacgym |
37 | 31 |
|
38 | 32 | import hydra |
39 | 33 |
|
40 | | -from isaacgymenvs.utils.rlgames_utils import multi_gpu_get_rank |
41 | | - |
42 | | -from isaacgymenvs.pbt.pbt import PbtAlgoObserver, initial_pbt_check |
43 | 34 | from omegaconf import DictConfig, OmegaConf |
44 | | -from hydra.utils import to_absolute_path |
45 | | -from isaacgymenvs.tasks import isaacgym_task_map |
46 | 35 | from omegaconf import DictConfig, OmegaConf |
47 | | -import gym |
48 | | - |
49 | | -from isaacgymenvs.utils.reformat import omegaconf_to_dict, print_dict |
50 | | -from isaacgymenvs.utils.utils import set_np_formatting, set_seed |
51 | 36 |
|
52 | 37 |
|
53 | 38 | def preprocess_train_config(cfg, config_dict): |
@@ -83,9 +68,23 @@ def preprocess_train_config(cfg, config_dict): |
83 | 68 | return config_dict |
84 | 69 |
|
85 | 70 |
|
86 | | -@hydra.main(config_name="config", config_path="./cfg") |
| 71 | +@hydra.main(version_base="1.1", config_name="config", config_path="./cfg") |
87 | 72 | def launch_rlg_hydra(cfg: DictConfig): |
88 | 73 |
|
| 74 | + import logging |
| 75 | + import os |
| 76 | + from datetime import datetime |
| 77 | + |
| 78 | + # noinspection PyUnresolvedReferences |
| 79 | + import isaacgym |
| 80 | + from isaacgymenvs.pbt.pbt import PbtAlgoObserver, initial_pbt_check |
| 81 | + from isaacgymenvs.utils.rlgames_utils import multi_gpu_get_rank |
| 82 | + from hydra.utils import to_absolute_path |
| 83 | + from isaacgymenvs.tasks import isaacgym_task_map |
| 84 | + import gym |
| 85 | + from isaacgymenvs.utils.reformat import omegaconf_to_dict, print_dict |
| 86 | + from isaacgymenvs.utils.utils import set_np_formatting, set_seed |
| 87 | + |
89 | 88 | if cfg.pbt.enabled: |
90 | 89 | initial_pbt_check(cfg) |
91 | 90 |
|
|
0 commit comments