Comments (1)
I tried to create the episode_routes.rou.xml file with the coding in generator.py as below
<vType accel="1.0" decel="4.5" id="standard_car" length="5.0" minGap="2.5" maxSpeed="25" sigma="0.5" />
<route id="W_N" edges="W2TL TL2N"/>
<route id="W_E" edges="W2TL TL2E"/>
<route id="W_S" edges="W2TL TL2S"/>
<route id="N_W" edges="N2TL TL2W"/>
<route id="N_E" edges="N2TL TL2E"/>
<route id="N_S" edges="N2TL TL2S"/>
<route id="E_W" edges="E2TL TL2W"/>
<route id="E_N" edges="E2TL TL2N"/>
<route id="E_S" edges="E2TL TL2S"/>
<route id="S_W" edges="S2TL TL2W"/>
<route id="S_N" edges="S2TL TL2N"/>
<route id="S_E" edges="S2TL TL2E"/>
After running train.py -c config.yaml, it had another error
(Hung3.7) osboxes@osboxes:~/Desktop/intelligent_traffic_lights-master$ python train.py -c config.yaml
{'learning_rate': 1e-05, 'gamma': 0.95, 'buffer_limit': 5000, 'batch_size': 128, 'sim_len': 4500, 'mem_refill': 1000, 'epochs': 1600, 'n_cars': 1000, 'weights_path': '', 'sumoBinary': '', 'sumoCmd': '', 'sumoTools': ''}
/home/osboxes/Desktop/intelligent_traffic_lights-master/src/training.py:16: UserWarning: nn.init.xavier_uniform is now deprecated in favor of nn.init.xavier_uniform_.
torch.nn.init.xavier_uniform(m.weight.data)
/home/osboxes/Desktop/intelligent_traffic_lights-master/src/training.py:17: UserWarning: nn.init.constant is now deprecated in favor of nn.init.constant_.
nn.init.constant(m.bias.data, 0)
No model weights found, initializing xavier_uniform
Traceback (most recent call last):
File "train.py", line 15, in
training(cfg)
File "/home/osboxes/Desktop/intelligent_traffic_lights-master/src/training.py", line 69, in training
env = SumoIntersection(sumoBinary, sumoCmd, sim_len, n_cars)
File "/home/osboxes/Desktop/intelligent_traffic_lights-master/src/env.py", line 29, in init
traci.start(self.sumoCmd)
File "/home/osboxes/anaconda3/envs/Hung3.7/lib/python3.7/site-packages/traci/main.py", line 168, in start
sumoProcess = subprocess.Popen(cmd2, stdout=stdout)
File "/home/osboxes/anaconda3/envs/Hung3.7/lib/python3.7/subprocess.py", line 800, in init
restore_signals, start_new_session)
File "/home/osboxes/anaconda3/envs/Hung3.7/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: ''
from intelligent_traffic_lights.
Related Issues (12)
- some resources are not found HOT 3
- Help HOT 1
- What is Reward? HOT 1
- Implementation
- Xml file not found HOT 3
- SUMO simulation HOT 3
- colab
- file not found
- plot graphs
- Could not connect to TraCI server using port 56213 HOT 3
- yaml error 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 intelligent_traffic_lights.