[Question] Adding a GRU in Dict_Discrete_PPO Issaclab #3183
Replies: 3 comments
-
Hi @shiven2001 As mentioned in the this skrl's docs note, support for recurrent neural networks (RNN, LSTM, GRU and any other variant) is implemented in a separate file. In this case your import should be as follow:
|
Beta Was this translation helpful? Give feedback.
-
Sorry I didn't see the PPO_RNN as PPO part. It runs properly now. I am running it using a CategoricalMixin as my action space is discrete. I will provide the code as a reference in case anyone want to set up an discrete action space GRU PPO policy. I have two more questions:
It seems I can use states = inputs["states"] directly in INPUTS instead of the concatenate([features_extractor, OBSERVATIONS["joint-velocities"]]) from the environment. But I want to add an image input as use the
on it. I am unsure how the states = inputs["states"] work with isaaclab. If I use states = inputs["states"], and if I have the image in my observation space, will it also be included in the states = inputs["states"]? If yes, how do I select the image first and run a features_extractor on it before and then adding the extracted features and the rest of the observations together in GRU instead of the image and rest of the observations?
There is termination and truncation conditions. I don't know if the GRU is reset on the time_out as well or do I need to add some code for that? Thanks FULL CODE:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for following up, I'll move this post to our Discussions for the team and others to reply. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hello, I am trying to do this to add a GRU and I am running in an issue. I followed the Toni-SM/skrl#276 thread but I get this error:
I am using a dict as observation and discrete action space. What is the issue here? Also another question, it seems that GRU is reset on termination. Will it also reset on truncation? I am using this as my get_dones in DirectRL:
There is termination and truncation conditions. I don't know if the GRU is reset on the time_out as well or do I need to add some code for that? Thanks
Here is the skrl code:
Beta Was this translation helpful? Give feedback.
All reactions