Skip to content

"lane_change_env" accurs bug #1045

Open
@nizhan-1111

Description

@nizhan-1111

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions