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

Impossible to connect #32

Open
eds89 opened this issue May 10, 2018 · 9 comments
Open

Impossible to connect #32

eds89 opened this issue May 10, 2018 · 9 comments

Comments

@eds89
Copy link

eds89 commented May 10, 2018

Hello,
The run_cil.py script cannot connect to the server. When trying to establish a connection, I get a connection refused or connection timed out errors. I know this is not a firewall or network reachability problem as I can run the manual_driving.py script and can control the vehicle remotely.

Find the output generated by running run_CIL.py below. I'd appreciate if any potential solution is shared.

 === Conv 0   :   5 2 32
Dropout 0
Tensor("Network/conv_block0/relu1:0", shape=(?, 42, 98, 32), dtype=float32)
 === Conv 1   :   3 1 32
Dropout 1
Tensor("Network/conv_block1/relu2:0", shape=(?, 40, 96, 32), dtype=float32)
 === Conv 2   :   3 2 64
Dropout 2
Tensor("Network/conv_block2/relu3:0", shape=(?, 19, 47, 64), dtype=float32)
 === Conv 3   :   3 1 64
Dropout 3
Tensor("Network/conv_block3/relu4:0", shape=(?, 17, 45, 64), dtype=float32)
 === Conv 4   :   3 2 128
Dropout 4
Tensor("Network/conv_block4/relu5:0", shape=(?, 8, 22, 128), dtype=float32)
 === Conv 5   :   3 1 128
Dropout 5
Tensor("Network/conv_block5/relu6:0", shape=(?, 6, 20, 128), dtype=float32)
 === Conv 6   :   3 1 256
Dropout 6
Tensor("Network/conv_block6/relu7:0", shape=(?, 4, 18, 256), dtype=float32)
 === Conv 7   :   3 1 256
Dropout 7
Tensor("Network/conv_block7/relu8:0", shape=(?, 2, 16, 256), dtype=float32)
Tensor("Network/reshape:0", shape=(?, 8192), dtype=float32)
 === FC 0   :   512
Dropout 8
Tensor("Network/fc1/relu9:0", shape=(?, 512), dtype=float32)
 === FC 1   :   512
Dropout 9
 === FC 2   :   128
Dropout 10
 === FC 3   :   128
Dropout 11
 === FC 4   :   512
Dropout 12
 === FC 5   :   256
Dropout 13
 === FC 6   :   256
Dropout 14
Tensor("Network/Branch_0/fc7/relu15:0", shape=(?, 256), dtype=float32)
 === FC 8   :   256
Dropout 15
 === FC 9   :   256
Dropout 16
Tensor("Network/Branch_1/fc10/relu17:0", shape=(?, 256), dtype=float32)
 === FC 11   :   256
Dropout 17
 === FC 12   :   256
Dropout 18
Tensor("Network/Branch_2/fc13/relu19:0", shape=(?, 256), dtype=float32)
 === FC 14   :   256
Dropout 19
 === FC 15   :   256
Dropout 20
Tensor("Network/Branch_3/fc16/relu21:0", shape=(?, 256), dtype=float32)
 === FC 17   :   256
Dropout 21
 === FC 18   :   256
Dropout 22
Tensor("Network/Branch_4/fc19/relu23:0", shape=(?, 256), dtype=float32)
Restoring from  D:\auto_dev\CARLA\CARLA_0.8.2\PythonClient\agents\imitation/model/model.ckpt-450000

D:\Program Files\Python\Python36\lib\site-packages\h5py\__init__.py:36: FutureWa
rning: Conversion of the second argument of issubdtype from `float` to `np.float
ing` is deprecated. In future, it will be treated as `np.float64 == np.dtype(flo
at).type`.
  from ._conv import register_converters as _register_converters
INFO: listening to server localhost:2000
INFO:tensorflow:Restoring parameters from D:\auto_dev\CARLA\CARLA_0.8.2\PythonCl
ient\agents\imitation/model/model.ckpt-450000
INFO: Restoring parameters from D:\auto_dev\CARLA\CARLA_0.8.2\PythonClient\agent
s\imitation/model/model.ckpt-450000
INFO: START
ERROR: (localhost:2000) failed to read data: timed out
ERROR: (localhost:2000) failed to read data: [WinError 10054] An existing connec
tion was forcibly closed by the remote host
INFO: START
ERROR: (localhost:2000) failed to read data: timed out
ERROR: (localhost:2000) failed to read data: [WinError 10054] An existing connec
tion was forcibly closed by the remote host
INFO: START
ERROR: (localhost:2000) failed to read data: timed out
ERROR: (localhost:2000) failed to read data: [WinError 10054] An existing connec
tion was forcibly closed by the remote host
INFO: START
ERROR: (localhost:2000) failed to read data: timed out
ERROR: (localhost:2000) failed to read data: [WinError 10054] An existing connec
tion was forcibly closed by the remote host
INFO: START
ERROR: (localhost:2000) failed to read data: timed out
ERROR: (localhost:2000) failed to read data: [WinError 10054] An existing connec
tion was forcibly closed by the remote host
INFO: START
ERROR: (localhost:2000) failed to read data: timed out
ERROR: (localhost:2000) failed to read data: [WinError 10054] An existing connec
tion was forcibly closed by the remote host

@soham2017
Copy link

Same problem here . Any update to the question would be life saving.

@felipecode
Copy link
Contributor

Are you running on windows ? I can't reproduce the error =/

@soham2017
Copy link

Yes I am running on windows.

@eds89
Copy link
Author

eds89 commented Jun 26, 2018 via email

@JunningHuang
Copy link

I am running on Ubuntu, meet the same problem... @felipecode

@arashroomi
Copy link

Same problem here. I guess its due to carla version. Someone had similar problem but with the python client. I think the older version shall be installed inorder to work with imitation learning.
carla-simulator/carla#697

@Elahe96
Copy link

Elahe96 commented Mar 2, 2020

I'm using carla 0.8.2.2, but I'm still facing this problem. Any idea how to fix it?
@arashroomi @soham2017 @eds89

@Rookie-81
Copy link

Still encountering this problem

@liuyandong1988
Copy link

For carla 0.8.2, use the param -carla-server to start carla simulator. ./CarlaUE4.sh -carla-server

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

8 participants