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

Disable empirical normalizer updates on resume training #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tasdep
Copy link

@tasdep tasdep commented Jun 21, 2024

This completely disables the updates if "resume" is in the agent_cfg and True.

Should we check how many iterations/updates were done previously and only disable if over a threshold?

else:
until = 1.0e8
self.obs_normalizer = EmpiricalNormalization(shape=[num_obs], until=until).to(self.device)
self.critic_obs_normalizer = EmpiricalNormalization(shape=[num_critic_obs], until=until).to(self.device)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the correct way to solve the problem is to save and load the internal count of EmpiricalNormalization. The current solution breaks if you resume training before 1.0e8 steps

Copy link
Author

Choose a reason for hiding this comment

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

https://github.com/tasdep/rsl_rl-1/blob/f2b721aae7c33a34155a0db6135a559b75513334/rsl_rl/runners/on_policy_runner.py#L257-L262
what is saved_dict[infos] intended for? Or should I just add another term to the saved_dict?

@pascal-roth
Copy link

@nikitardn should we merge this?

@Mayankm96 Mayankm96 changed the title disable empirical normalizer updates on resume training Disable empirical normalizer updates on resume training Oct 11, 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.

3 participants