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

the return value of step function in atari #199

Open
lucasliunju opened this issue Sep 14, 2022 · 7 comments
Open

the return value of step function in atari #199

lucasliunju opened this issue Sep 14, 2022 · 7 comments

Comments

@lucasliunju
Copy link

Hi, I try to run the code with default setting for aatari (Pong). I find the step function (dopamine/dopamine/discrete_domains/atari_lib.py +467) returns five values but the code just defines four values. May I ask how to modify that?

In addition, I find the step function returns 2 values about "done" and I think this maybe the main reason.

Thank you very much!

@JesseFarebro
Copy link

Hi @lucasliunju, Dopamine doesn’t support Gym version 0.26. Breaking changes were introduced in v0.26 to the step and reset function (as you pointed out the return signature changed). You should use Gym 0.25.X along with ale-py 0.7.X.

@lucasliunju
Copy link
Author

Thank you very much!

May I ask how to train the DQN agent with JAX. I follow this command and I find that is using tensorflow:

python -um dopamine.discrete_domains.train \ --base_dir /tmp/dopamine_runs \ --gin_files dopamine/agents/dqn/configs/dqn.gin

@psc-g
Copy link
Collaborator

psc-g commented Sep 16, 2022 via email

@houeland
Copy link

Thanks! I also had this issue, and it now works after manually running pip install ale-py==0.7.5 gym==0.25.2

Can you update the requirements.txt file to specify the versions that dopamine is currently compatible with?

(I followed the instructions which say pip install -r dopamine/requirements.txt, but that ends up with the newer incompatible versions of ale-py and gym, so it currently doesn't work.)

@psc-g
Copy link
Collaborator

psc-g commented Sep 21, 2022 via email

@lucasliunju
Copy link
Author

Thanks for your update.

I try to run the code of jax-based dqn in Atari (Pong) and I find the return is less than the result in this link: https://google.github.io/dopamine/baselines/atari/plots.html

I would like to ask if is it normal.

@psc-g
Copy link
Collaborator

psc-g commented Sep 22, 2022 via email

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

4 participants