Comments (5)
By the way-
I linked to this repo in the PettingZoo and Gym third party env lists:
https://www.pettingzoo.ml/third_party_envs
https://github.com/openai/gym/blob/master/docs/third_party_environments.md (this will be a website in the coming months)
from sumo-rl.
(new thread to simply the discussion of the hanging issues in #45)
"When using LIBSUMO, it is not possible to instantiate more than 1 simulation at the same time. This means that eval_callback can't work. If you use TRACI, I can easily implement multi-client support and this would be possible. But remember that TRACI is way slower than LIBSUMO, so I'm not sure whether this is advantageous." -Could you please elaborate a bit more on all this? Using eval callback is essential to what I'm planning to do with this, and running multiple environments at once is generally desirable when learning with PPO
I have just added support for multiple simulations in parallel with TRACI :)
TRACI and LIBSUMO are different libraries (with basically the same API) that you can use to control SUMO through python. TRACI is way slower, but lets you open multiple parallels connections (and thus instantiate training and eval envs at the same time). LIBSUMO is way faster, but for now it only supports a single connection.
In short, if you need to run multiple envs in parallel, you need to use TRACI. Then, unset the LIBSUMO_AS_TRACI system variable.
Regarding how rendering doesn't work in my sb3 code snippet, is there code somewhere that generates videos of the simulation rendering that I could adapt into that snippet?
Give a check at https://sumo.dlr.de/docs/FAQ.html#building_videos_from_sumo-gui . I have never done this, but it should be possible.
Thanks again for all your help, I really appreciate it :)
I'm glad to help! :)
from sumo-rl.
By the way-
I linked to this repo in the PettingZoo and Gym third party env lists: https://www.pettingzoo.ml/third_party_envs https://github.com/openai/gym/blob/master/docs/third_party_environments.md (this will be a website in the coming months)
Thanks! :D
from sumo-rl.
Do you happen to have any benchmarks of how much slower TRACI is vs LIBSUMO?
from sumo-rl.
Do you happen to have any benchmarks of how much slower TRACI is vs LIBSUMO?
I have tested on experiments/ql_4x4grid.py once, and LIBSUMO was around 8x faster. However, the bottleneck is the number of vehicles, as we need to retrieve information for all vehicles in the simulation. So in smaller scenarios this difference may be not that big.
You can try to ask in https://github.com/eclipse/sumo if they have more results on this.
from sumo-rl.
Related Issues (20)
- change 4*4 grid to 8*8 grid, can't work. HOT 2
- Plotting Errors HOT 4
- QL Agent not running properly HOT 8
- How can I save my trained model? HOT 1
- More phases generated by _build_phases() when running ql_2way-single-intersection.py HOT 3
- Two logic after executing setRedYellowGreenState
- What is the meaning of doing encode(state, ts_id) operations even though we have paired the state into a list? HOT 2
- How to save the model after training? HOT 1
- How to save and reload the environment? HOT 2
- issues about the reward HOT 1
- running error on ppo_4x4grid.py HOT 2
- Hello, Lucas, I want to find and run your a3c 4*4grid project, but I did not find this project in your experiment. Could you please share this project again? I hope you can answer it as soon as possible, thank you HOT 2
- change the action to switch to different signal timing schemes HOT 1
- Cannot load DQN model HOT 1
- Why delta_time should be greater than yellow time? HOT 5
- Applying fixed time control to SumoEnvironmentPZ class HOT 2
- Error: tcpip::Socket::accept() Unable to create listening socket: Address already in use Quitting (on error). HOT 1
- RESCO benchmark has no cars HOT 6
- envionment checking HOT 2
- Continuous action control HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sumo-rl.