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

How to use Offline_RL to train this agent? #24

Open
ZhimengChi opened this issue Dec 28, 2023 · 4 comments
Open

How to use Offline_RL to train this agent? #24

ZhimengChi opened this issue Dec 28, 2023 · 4 comments

Comments

@ZhimengChi
Copy link

Hi, thanks for sharing this amazing project!
I have successfully run example.py and example_agent.py. Here are two questions I currently have:

  1. It really confused me that example_agent.py seems only do multiple simulation steps instead of learning to grasp things, according to its code. I'm really new to mujoco and RL, sorry if I have missed some obvious thing here.
  2. How to use the models in Modules.py and Offline_RL to get this agent learning? In train.py it has a load_path ("../xxx.pt"), is it generated from another .py file?

Much appreciate.

@guanxiaoyuan
Copy link

Offline RL training should use generate_data.py to generate transactions. However, I encounter a new problem:
No such file or directory :
'../DQN_RESENT_;R_0.001_OPTION_ADAM_H_200_W_STEPS_35000_BUFFER_SIZE_2000_BATCH_SIZE_12_SEED_81_9_7_2020_9_52_weights.pt'

@guanxiaoyuan
Copy link

Offline RL training should use generate_data.py to generate transactions. However, I encounter a new problem: No such file or directory : '../DQN_RESENT_;R_0.001_OPTION_ADAM_H_200_W_STEPS_35000_BUFFER_SIZE_2000_BATCH_SIZE_12_SEED_81_9_7_2020_9_52_weights.pt'

reset the LOAD_PATH = None; problem resolved.

@lllwin
Copy link

lllwin commented Apr 9, 2024

When I ran example_agent.py , I met a problem saying " failed to initialize OpenGL", had you met this problem? And how did you solved that? This confuses me for a long time.

@QWelkin
Copy link

QWelkin commented Apr 11, 2024

When I ran example_agent.py , I met a problem saying " failed to initialize OpenGL", had you met this problem? And how did you solved that? This confuses me for a long time.

I met this problem too. I had looking for solutions for a long time but the problem have not been solved yet. https://github.com/openai/mujoco-py/issues/187
Maybe you can check this out and find some solutions.

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