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

论文程序请教 #2

Open
jelly-961 opened this issue Nov 29, 2022 · 2 comments
Open

论文程序请教 #2

jelly-961 opened this issue Nov 29, 2022 · 2 comments

Comments

@jelly-961
Copy link

吴同学,

您好!

您发表的论文《Toward human-in-the-loop AI: Enhancing deep reinforcement learning via real-time human guidance for autonomous driving》十分精彩。也非常感谢您无私的分享了论文的相关程序,我在学习您的算法时,可能发现了程序的一个小问题。主要是当算法训练的一个episode结束后,需要更新replay memory buffer时,errors在脚本中没有被定义。我附上了相应的报错信息。

File "...\TD3_based_DRL\TD3.py", line 115, in learn
self.memory.batch_update(tree_idx, abs(errors.detach().cpu().numpy()) )
NameError: name 'errors' is not defined

不知您是否有空看一看程序这个部分?非常感谢您的帮助。

@wujingda
Copy link
Owner

wujingda commented Dec 1, 2022

您好,感谢指正! 此处bug已修复,请查看最新代码

@jelly-961
Copy link
Author

非常感谢您的及时回复!

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