Skip to content

Conversation

@Andrew-Luo1
Copy link
Contributor

Required for google-deepmind/mujoco_playground#76

Allows you to run the BC inference function on a PPO policy checkpoint.

The BC inference function provides additional metadata required for behaviour cloning.

# Load the first file that ends with "_config.json".
# This allows loading a BC inference function from, e.g., a PPO checkpoint.
config_fname = next(path.glob('*_config.json'))
config_path = path / config_fname

Choose a reason for hiding this comment

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

I think a better approach would be to allow the the parameter config_fname with the default _CONFIG_FNAME. This would make the code backwards compatible.

Copy link
Contributor Author

@Andrew-Luo1 Andrew-Luo1 Jul 14, 2025

Choose a reason for hiding this comment

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

Thanks I see how this could break stuff. Updated.

@copybara-service copybara-service bot merged commit 4d0cbe2 into google:main Aug 14, 2025
1 of 2 checks passed
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