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

ValueError: pvals < 0, pvals > 1 or pvals contains NaNs #19

Open
pirate-lofy opened this issue Jan 23, 2020 · 1 comment
Open

ValueError: pvals < 0, pvals > 1 or pvals contains NaNs #19

pirate-lofy opened this issue Jan 23, 2020 · 1 comment

Comments

@pirate-lofy
Copy link

After executing the code and Carla starts, it gives me an error... this is the full log
Traceback (most recent call last): File "run_RL.py", line 89, in <module> args.host, args.port) File "/media/bignrz/World/carla simulator/CARLA_0.8.2/PythonClient/carla/driving_benchmark/driving_benchmark.py", line 294, in run_driving_benchmark benchmark_summary = benchmark.benchmark_agent(experiment_suite, agent, client) File "/media/bignrz/World/carla simulator/CARLA_0.8.2/PythonClient/carla/driving_benchmark/driving_benchmark.py", line 129, in benchmark_agent + '.' + str(end_index)) File "/media/bignrz/World/carla simulator/CARLA_0.8.2/PythonClient/carla/driving_benchmark/driving_benchmark.py", line 227, in _run_navigation_episode control = agent.run_step(measurements, sensor_data, directions, target) File "/media/bignrz/World/projects/carla RL envs/reinforcement-learning/agent/runnable_model.py", line 35, in run_step action_idx = self.actor.act(obs_preprocessed=obs_preprocessed) File "/media/bignrz/World/projects/carla RL envs/reinforcement-learning/agent/asyncrl/a3c.py", line 49, in act action = pout.action_indices[0] File "/home/bignrz/.local/lib/python3.6/site-packages/cached_property.py", line 35, in __get__ value = obj.__dict__[self.func.__name__] = self.func(obj) File "/media/bignrz/World/projects/carla RL envs/reinforcement-learning/agent/asyncrl/policy_output.py", line 51, in action_indices return _sample_discrete_actions(self.probs.data) File "/media/bignrz/World/projects/carla RL envs/reinforcement-learning/agent/asyncrl/policy_output.py", line 27, in _sample_discrete_actions histogram = np.random.multinomial(1, batch_probs[i]) File "mtrand.pyx", line 4199, in numpy.random.mtrand.RandomState.multinomial File "_common.pyx", line 324, in numpy.random._common.check_array_constraint ValueError: pvals < 0, pvals > 1 or pvals contains NaNs
any help please.

@d34dl0ckk
Copy link

Check closed issue #17

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

2 participants