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

singleAgentMakeVideo.py getindex error #12

Open
andyehrenberg opened this issue May 2, 2019 · 3 comments
Open

singleAgentMakeVideo.py getindex error #12

andyehrenberg opened this issue May 2, 2019 · 3 comments

Comments

@andyehrenberg
Copy link

Have have successfully trained a model, and run validate.py. Now I am trying to create a visualization, and received an error stemming from rendering the environment. The error message includes:

RuntimeError: Julia exception: MethodError: no method matching getindex(::Records.Frame{Records.Entity{AutomotiveDrivingModels.VehicleState,AutomotiveDrivingModels.VehicleDef,Int64}}, ::Nothing) Closest candidates are: getindex(::Records.Frame, !Matched::Int64) at /home/fei960922/.julia/packages/Records/q2nsF/src/frames.jl:20

Full traceback:
Traceback (most recent call last): File "singleAgentMakeVideo.py", line 220, in <module> n_vehs=1) File "singleAgentMakeVideo.py", line 176, in do_it_all_once render_map = create_render_map(model_labels, model_args_filepaths, model_params_filepaths, multi,rand, n_vehs=n_vehs, remove_ngsim=remove_ngsim) File "singleAgentMakeVideo.py", line 154, in create_render_map render_kwargs=render_kwargs File "singleAgentMakeVideo.py", line 72, in mutliagent_simulate img = env.render(**render_kwargs) File "/home/fei960922/Documents/Andy/rllab/rllab/envs/proxy_env.py", line 29, in render return self._wrapped_env.render(*args, **kwargs) File "/home/fei960922/Documents/Andy/rllab/rllab/envs/proxy_env.py", line 29, in render return self._wrapped_env.render(*args, **kwargs) File "/home/fei960922/Documents/Andy/ngsim_env/python/julia_env/julia_env.py", line 32, in render return self.j.render(self.env, *args, **kwargs)Traceback (most recent call last): File "singleAgentMakeVideo.py", line 220, in <module> n_vehs=1) File "singleAgentMakeVideo.py", line 176, in do_it_all_once render_map = create_render_map(model_labels, model_args_filepaths, model_params_filepaths, multi,rand, n_vehs=n_vehs, remove_ngsim=remove_ngsim) File "singleAgentMakeVideo.py", line 154, in create_render_map render_kwargs=render_kwargs File "singleAgentMakeVideo.py", line 72, in mutliagent_simulate img = env.render(**render_kwargs) File "/home/fei960922/Documents/Andy/rllab/rllab/envs/proxy_env.py", line 29, in render return self._wrapped_env.render(*args, **kwargs) File "/home/fei960922/Documents/Andy/rllab/rllab/envs/proxy_env.py", line 29, in render return self._wrapped_env.render(*args, **kwargs) File "/home/fei960922/Documents/Andy/ngsim_env/python/julia_env/julia_env.py", line 32, in render return self.j.render(self.env, *args, **kwargs)Traceback (most recent call last): File "singleAgentMakeVideo.py", line 220, in <module> n_vehs=1) File "singleAgentMakeVideo.py", line 176, in do_it_all_once render_map = create_render_map(model_labels, model_args_filepaths, model_params_filepaths, multi,rand, n_vehs=n_vehs, remove_ngsim=remove_ngsim) File "singleAgentMakeVideo.py", line 154, in create_render_map render_kwargs=render_kwargs File "singleAgentMakeVideo.py", line 72, in mutliagent_simulate img = env.render(**render_kwargs) File "/home/fei960922/Documents/Andy/rllab/rllab/envs/proxy_env.py", line 29, in render return self._wrapped_env.render(*args, **kwargs) File "/home/fei960922/Documents/Andy/rllab/rllab/envs/proxy_env.py", line 29, in render return self._wrapped_env.render(*args, **kwargs) File "/home/fei960922/Documents/Andy/ngsim_env/python/julia_env/julia_env.py", line 32, in render return self.j.render(self.env, *args, **kwargs)

Has anyone encountered this? Does it relate to using the wrong version of AutoViz?

@djp42
Copy link
Collaborator

djp42 commented May 7, 2019

Hi Andy,

Thanks for the question. On first read I also thought it might be related to versions. However, it seems like it is just trying to get the index for nothing. Have you gotten any videos to show up? Also, is this on Julia 1.1 and the v0.7fixes_in_progress branch?

@andyehrenberg
Copy link
Author

andyehrenberg commented May 7, 2019 via email

@raunakbh92
Copy link
Collaborator

Could you please try multiAgentMakeVideo.py with AutoViz v0.7.1? I was able to create a video using those.

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

3 participants