-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Bug Report] Cannot modify network architecture with hydra if agent config is a configclass #2456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for posting this. It's likely we have seen this before. Could you post a fuller error log? The team will review this. Thanks. |
Thanks for your reply. A screenshot with the full error log is attached: ![]() My understanding is that while updating the default config with Hydra arguments, the As a quick workaround, I tried to add the following exception for flat lists:
right before this length check that cause the limitation: IsaacLab/source/isaaclab/isaaclab/utils/dict.py Lines 102 to 106 in b1cd175
This seems to solve the issue/limitation. However, I am not sure if this would break something else, somewhere else. If you could provide feedback on this for a robust solution, I could create a PR accordingly. |
Thanks for submitting this. Would you like to submit a PR that we could review? |
Hi @RandomOakForest , I have done so. |
Describe the bug
I would like to modify the agent's neural network architecture using Hydra on the go, using command line arguments, e.g.:
isaaclab -p scripts/reinforcement_learning/rsl_rl/train.py --task my_task 'agent.policy.actor_hidden_dims=[512, 256, 128, 64]'
However, if the agent's configuration is using the
configclass
(as in thersl_rl
), and the number of layers within the default config does not match the provided Hydra arguments, I encounter an error, specifically, I get the following exception:Is there any workaround for this?
Thanks in advance!
System Info
Checklist
Acceptance Criteria
The text was updated successfully, but these errors were encountered: