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

"lane_change_env" accurs bug #1045

Open
nizhan-1111 opened this issue Jul 6, 2021 · 0 comments
Open

"lane_change_env" accurs bug #1045

nizhan-1111 opened this issue Jul 6, 2021 · 0 comments
Labels

Comments

@nizhan-1111
Copy link

can you give some examples for the env of "lane_change_env".when i use the env ,the size of input does not match the size is seted by ray.The error is followed:
ray.worker.RayTaskError: ray_PolicyEvaluator:sample() (pid=6047, host=kk-OMEN)
File "/home/kk/anaconda2/envs/flow/lib/python3.6/site-packages/ray/rllib/evaluation/policy_evaluator.py", line 368, in sample
batches = [self.input_reader.next()]
File "/home/kk/anaconda2/envs/flow/lib/python3.6/site-packages/ray/rllib/offline/input_reader.py", line 25, in next
batches = [self.sampler.get_data()]
File "/home/kk/anaconda2/envs/flow/lib/python3.6/site-packages/ray/rllib/evaluation/sampler.py", line 64, in get_data
item = next(self.rollout_provider)
File "/home/kk/anaconda2/envs/flow/lib/python3.6/site-packages/ray/rllib/evaluation/sampler.py", line 267, in _env_runner
preprocessors, obs_filters, unroll_length, pack, callbacks)
File "/home/kk/anaconda2/envs/flow/lib/python3.6/site-packages/ray/rllib/evaluation/sampler.py", line 347, in _process_observations
filtered_obs = _get_or_raise(obs_filters, policy_id)(prep_obs)
File "/home/kk/anaconda2/envs/flow/lib/python3.6/site-packages/ray/rllib/utils/filter.py", line 225, in call
self.rs.push(x)
File "/home/kk/anaconda2/envs/flow/lib/python3.6/site-packages/ray/rllib/utils/filter.py", line 86, in push
x.shape, self._M.shape, x))
ValueError: Unexpected input shape (50,), expected (25,), value = [-2.50250000e+01 2.60250000e+01 1.00000000e+00 -2.50250

@nizhan-1111 nizhan-1111 added the bug label Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant