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

Might be a bug in AgentPPO #451

Open
Die-Xie opened this issue Nov 8, 2024 · 0 comments
Open

Might be a bug in AgentPPO #451

Die-Xie opened this issue Nov 8, 2024 · 0 comments

Comments

@Die-Xie
Copy link

Die-Xie commented Nov 8, 2024

In AgnetPPO, act_target and cri_target may not be properly initialized and are only set to None in the parent class, which could lead to errors when calling save_or_load().

The same issue may also occur in agents such as AgentDiscretePPO, AgentDiscreteA2C, and other similar agents.

I encountered this problem while training with AgentPPO in a custom environment. It was resolved by initializing act_target and cri_target with self.act and self.cri , respectively, during the initialization of AgentPPO.

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

1 participant