-
Notifications
You must be signed in to change notification settings - Fork 16
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 solve goseek problem with DQN ? #19
Comments
Hi, Thanks for sharing! I'll look into your changes further. In the meantime, did you get any further output before the process died? It could be helpful for debugging. |
Looking into this further, the stable-baselines DQN docs note that
Perhaps the use of |
What I do is Does your DQN run OK at your side ? |
I'm not very familiar with their DQN implementation, but the error could be coming from the feature extractor used. It looks like you're using On another note, sometimes the error messages given by |
Hello,
I modified the demo code: "goseek-ppo-ipynb" in order to use DQN instead of PPO2. The code seems running OK for a while. Then, it suddenly stops with the message, "The kernel appears to have died. It will restart automatically" Then, the agent stops navigating/learning.
Could you please give me an advice on the code snippet below?
================= What I modified is as below =====================
`policy_kwargs = {'cnn_extractor': image_and_pose_network}
class CustomDQNPolicy(FeedForwardPolicy):
def init(self, *args, **kwargs):
super(CustomDQNPolicy, self).init(*args, **kwargs,
layers=[32, 32],
layer_norm=False,
feature_extraction="mlp")
model = DQN(
CustomDQNPolicy,
env,
verbose=1,
tensorboard_log="./tensorboard/",
learning_rate=0.00025,
policy_kwargs=policy_kwargs,
)`
===========================================================
Thanks
The text was updated successfully, but these errors were encountered: