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
Errors when trainning models #6
Comments
Hey, beside your command, are you using any input files (it sounds like you put |
Thank you for replying to me. And after running (MAI) osboxes@osboxes:~/Desktop/mixed_autonomy_intersections$ find EXP_DIR |
I can not install Sumo version 1.1.0. |
I see, is there any other SUMO version that you can install? I would guess that the issue is that a vehicle somehow doesn't have a road_id, which shouldn't happen in SUMO 1.1.0. So it looks like the program crashes after running for a bit? Does it crash when the first vehicle exits? If that's the case, then maybe in the new SUMO version, the vehicle's road_id gets set to |
It's probably easier to fix the program rather than installing SUMO 1.1.0 at this point, since many of Mac's packages are now incompatible with 1.1.0. Again, I believe the issue is: "If that's the case, then maybe in the new SUMO version, the vehicle's road_id gets set to '' when it exits, and you can add an if statement to handle that." I'd suggest that you look into the issue from this perspective. SUMO 1.13.0 cannot be totally broken, because it runs for a while. It's probably just a small issue when vehicles exit. I won't be available for the next few days, but you can try this and let me know if it doesn't work |
Thank you very much. I will try to find a way to fix it |
Hello Errors: (PPO) osboxes@osboxes:~/Desktop/mixed_autonomy_intersections$ python intersection.py EXP_DIR Traceback (most recent call last): |
I create the new config.yaml with hyperparameter
and i run your model again Errors flow_rate_v: 700
|
I see, do you have the newest version of the code? I think I fixed the array_interface issue with this commit d2fbe88 |
Thank you for your quick reply! Maybe, I used the old version. I downloaded your code by using git clone |
The newest code is already on GitHub, what commit are you on? |
I have just downloaded it again from GitHub and tried to train or evaluate the old result. But I still had the same error |
Hm okay, can you try changing line env.py line 225 to
|
You too! |
Hello
Thank you very much for sharing your code
But I had errors when running model at training step with n_workers: 1
I followed your instruction and take
python intersection.py EXP_DIR
Traceback (most recent call last):
File "intersection.py", line 312, in
c.run()
File "/home/osboxes/Desktop/mixed_autonomy_intersections/exp.py", line 357, in run
c.train()
File "/home/osboxes/Desktop/mixed_autonomy_intersections/exp.py", line 289, in train
rollouts = c.rollouts()
File "/home/osboxes/Desktop/mixed_autonomy_intersections/exp.py", line 176, in rollouts
rollout_stats = c.rollouts_single_process()
File "/home/osboxes/Desktop/mixed_autonomy_intersections/exp.py", line 182, in rollouts_single_process
rollout_stats = [c.var(i_rollout=i).rollout() for i in range(c.n_rollouts_per_worker)]
File "/home/osboxes/Desktop/mixed_autonomy_intersections/exp.py", line 182, in
rollout_stats = [c.var(i_rollout=i).rollout() for i in range(c.n_rollouts_per_worker)]
File "/home/osboxes/Desktop/mixed_autonomy_intersections/exp.py", line 201, in rollout
ret = c._env.reset()
File "/home/osboxes/Desktop/mixed_autonomy_intersections/env.py", line 1029, in reset
return self.norm_obs(self.env.reset())
File "intersection.py", line 108, in reset
ret = super().init_env()
File "/home/osboxes/Desktop/mixed_autonomy_intersections/env.py", line 932, in init_env
ret = self.step()
File "intersection.py", line 144, in step
super().step()
File "/home/osboxes/Desktop/mixed_autonomy_intersections/env.py", line 894, in step
self.ts.step()
File "/home/osboxes/Desktop/mixed_autonomy_intersections/env.py", line 791, in step
edge = self.edges[veh.road_id]
KeyError: ''
The text was updated successfully, but these errors were encountered: