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

Bugs in PPO #6

Open
moonblue333 opened this issue May 5, 2019 · 6 comments
Open

Bugs in PPO #6

moonblue333 opened this issue May 5, 2019 · 6 comments

Comments

@moonblue333
Copy link

  1. counter

  2. for index in BatchSampler(SubsetRandomSampler(range(self.buffer_capacity), self.batch_size, True)):

@yuntao-ma
Copy link

  1. How to solve bug 2?
  2. It seems that "done" from the env hasn't been dealt with. Why?

Thanks.

@HuangHaoyu1997
Copy link

@yuntao-ma
for index in BatchSampler(SubsetRandomSampler(range(self.buffer_capacity)), self.batch_size, True):

@brezezee
Copy link

Why can I train with this code to only get nan actions

@xxx-007
Copy link

xxx-007 commented Nov 4, 2020

I get nan actions too

@HzcIrving
Copy link

I change the code to :
for index in BatchSampler(SubsetRandomSampler(range(self.buffer_capacity)), self.batch_size, True):
but there still exists a bug:
Traceback (most recent call last): File "E:/AAAFor_PHD/UUV_SCI_Modif/UUV_obs_env/PPO2/Demo/PPO_demo.py", line 195, in <module> main() File "E:/AAAFor_PHD/UUV_SCI_Modif/UUV_obs_env/PPO2/Demo/PPO_demo.py", line 175, in main next_state, reward, done, info = env.step(action) File "F:\Anaconda\envs\Obstacle_Avoid\lib\site-packages\gym\envs\classic_control\pendulum.py", line 49, in step u = np.clip(u, -self.max_torque, self.max_torque)[0] IndexError: invalid index to scalar variable.

@haohaoqian
Copy link

Transition = namedtuple('Transition',['state', 'aciton', 'reward', 'a_log_prob', 'next_state'])
'aciton' should be 'action'

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

7 participants