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

A ERROR about test #355

Open
guest-oo opened this issue Apr 26, 2024 · 1 comment
Open

A ERROR about test #355

guest-oo opened this issue Apr 26, 2024 · 1 comment

Comments

@guest-oo
Copy link

当使用demo_DQN_Dueling_Double_DQN 训练结束的的pt文件无法作为测试时的权重文件 ,是否需要将保存pt文件
由torch.save(actor, actor_path)
更改为torch.save(actor.state_dict(), actor_path)

@guest-oo guest-oo changed the title A problem about text A problem about test Apr 26, 2024
@guest-oo guest-oo changed the title A problem about test A ERROR about test Apr 26, 2024
@stellawang196
Copy link
Contributor

Hi, have you tried to load the pt file by using torch.load(file_path)? In addition, there is method save_or_load_agent() in the AgentBase class, which you may utilize.

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