Skip to content
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

fix: skip terms with weight 0 #655

Closed
wants to merge 1 commit into from

Conversation

fan-ziqi
Copy link
Contributor

@fan-ziqi fan-ziqi commented Jul 7, 2024

Description

Optimize the reward manager so that rewards with a weight of 0 will not be calculated to improve performance

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist

  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

Comment on lines +216 to +218
# skip terms with weight 0
if term_cfg.weight == 0.0:
continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We removed this on purpose since many times we want to have a curriculum over rewards which may start at zero but go up during training. If you want to remove a reward term, please remove it from the config itself (or set it to None).

@Mayankm96 Mayankm96 closed this Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants