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

how to record other information by tensorboard in xuance #60

Open
muyu11 opened this issue Oct 18, 2024 · 1 comment
Open

how to record other information by tensorboard in xuance #60

muyu11 opened this issue Oct 18, 2024 · 1 comment

Comments

@muyu11
Copy link

muyu11 commented Oct 18, 2024

I'm training a customize mappo environment, now I can visualize the rewards during my training, but I wanna record other information in a dict "self.infos" and can be visualized in tensorboard, self.infos will be returned in the method "step", so how can I realize that?

Thanks

@wenzhangliu
Copy link
Collaborator

To record additional information returned in the step() method, you can edit on_policy_marl.py by adding the following line after line 427 (version 1.2.3):

step_info["Train-Results/Other-Info"] = {"env-%d" % i: info[i]["Other-Info"]}

This will allow you to capture and log the desired information.

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

No branches or pull requests

2 participants