Getting an error when using TD3 in parallel setting OmniverseISAAC Gym #60
Closed
dhruvkm2402
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @dhruvkm2402 It seems to be one, the main script or the installed version of skrl is out of date. Two solutions:
Please, let me know if everything goes well after the changes |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm getting this error when trying to use TD3
File "tasks/hunter_train2.py", line 116, in
trainer.train()
File "/home/krovilab/.local/share/ov/pkg/isaac_sim-2022.2.0/kit/python/lib/python3.7/site-packages/skrl/trainers/torch/parallel.py", line 141, in train
self.single_agent_train()
File "/home/krovilab/.local/share/ov/pkg/isaac_sim-2022.2.0/kit/python/lib/python3.7/site-packages/skrl/trainers/torch/base.py", line 171, in single_agent_train
actions, _, _ = self.agents.act(states, timestep=timestep, timesteps=self.timesteps)
File "/home/krovilab/.local/share/ov/pkg/isaac_sim-2022.2.0/kit/python/lib/python3.7/site-packages/skrl/agents/torch/td3/td3.py", line 213, in act
actions = self.policy.act(states, taken_actions=None, role="policy")
File "/home/krovilab/.local/share/ov/pkg/isaac_sim-2022.2.0/kit/python/lib/python3.7/site-packages/skrl/models/torch/deterministic.py", line 91, in act
taken_actions.to(self.device) if taken_actions is not None else taken_actions, role)
TypeError: compute() takes 3 positional arguments but 4 were given
Exception ignored in: <function _make_registry.._Registry.del at 0x7f9ddf57fb90>
I was looking at the deterministic.py files and trying to debug but the same error. What modifications should I do to use TD3?
Beta Was this translation helpful? Give feedback.
All reactions