Vectorized training in IsaacLab #346
Replies: 5 comments
-
|
I've a similar setup for my RL task and it's straight-forward to add --num_envs argument. in my isaac lab venv, I run |
Beta Was this translation helpful? Give feedback.
-
|
If you ensure your task and its config is registered using |
Beta Was this translation helpful? Give feedback.
-
|
If you're looking for an example, check this out Cartpole Showcase. I referred to this and did mine, works like a charm @giangdao1402 |
Beta Was this translation helpful? Give feedback.
-
|
Currently, using cfg = VaeNavigationEnvCfg()
env = VaeNavigationEnv(cfg=cfg)
env = wrap_env(env)works, but when i change the code to env = load_isaaclab_env(task_name="Template-Vae-Navigation-Direct-v0", num_envs=args_cli.num_envs)it doesn't work. The error is "... were loaded before SimulationApp was started and might not be loaded correctly". I dont know why because i have registered my environment using the default option like IsaacLab gym.register(
id="Template-Vae-Navigation-Direct-v0",
entry_point=f"{__name__}.vae_navigation_env:VaeNavigationEnv",
disable_env_checker=True,
kwargs={
"env_cfg_entry_point": f"{__name__}.vae_navigation_env_cfg:VaeNavigationEnvCfg",
"skrl_cfg_entry_point": f"{agents.__name__}:skrl_ppo_cfg.yaml",
},
)without importing any IsaacLab module |
Beta Was this translation helpful? Give feedback.
-
|
I have figured out the solution. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @Toni-SM,
I want to ask a question. How can I train the agent with vectorized environment like the option --num_envs of default script by IsaacLab. Currently I use the code as follows:
Beta Was this translation helpful? Give feedback.
All reactions