-
Notifications
You must be signed in to change notification settings - Fork 377
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
Can not take Tutorial 03 and 04 with Flow #1058
Comments
my bro, have you fix it? |
Not yet. Do you have got any ideal? |
I just follow your step by replacing redis~=2.10.6 with redis and I haven't take Tutorial 03 and 04 until now. If I take Tutorial 03 and 04, I will tell you whether it works or not. |
About Tutorial 03, I installed it with this source code https://github.com/lcipolina/flow (ray==0.7.3, redis==2.10.6) |
Hey, bro, has the problem been solved? |
I think I have finally found the reason for this error. The earlier version of flow was built on ray==0.7.3. The training weights file "trained_ring 200" was generated three years ago (around 2019). Then they upgrade the package to ray==0.8.0. a year ago (around 2021), which cannot recognize the weight as a dictionary (but as a NumPy array instead). Nevertheless, if you use the weights generated in "ray_results/training_example" from tutorial03 to visualize, it will not show this error (AttributeError: 'numpy.ndarray' object has no attribute 'keys'). So, if you use ray==0.8.0 and redis==newest, the codes can still be used for visualizing if you train by yourself. |
Now I am using DRL with DQN or DDPG. |
Are you still using SUMO for vehicular simulation? How can you connect the DRL environment with TraCI? |
I saw a lot of DRL models with sumo on github For example https://github.com/AndreaVidali/Deep-QLearning-Agent-for-Traffic-Signal-Control.git |
When I write "python flow/visualize/visualizer_rllib.py ~/ray_results/test0629/PPO 400 --horizon 500 --gen_emission" in the terminal, it can open the sumo-gui, but run only 1 second some errors happened. I have installed the ray==0.8.0, then I will show the errors: During handling of the above exception, another exception occurred: Traceback (most recent call last): So, how should I do? thank you very much! |
Hi bro, did you fix it in the past? Though this is just reproduce the example with RL, this won't run. Though too long time has passed after upload, can you share your status about this? Thank you. |
Hello all
I followed the instructions but I can't install Flow. ( https://flow.readthedocs.io/en/latest/flow_setup.html#remote-installation-using-docker)
After a while of searching and following online instructions, I changed the Requirement.txt file. I replaced redis~=2.10.6 with redis and I finally installed Flow.
But when running the model in Tutorial 03 and 04, all errors appear.
AttributeError: 'numpy.ndarray' object has no attribute 'keys'
I've seen a few other people get this error as well but they didn't fix it. Does anyone know how to fix it?
Thank you
The text was updated successfully, but these errors were encountered: