Comments (15)
- Are you passing the 'landscape' argument to the ps script? It should be started with
.\AD_Cookbook_Start_AirSim.ps1 landscape -windowed
- What is the output of
netstat -a
You should see a TCP connection on port 42451. If it's not there, then AirSim didn't start correctly. If, for some reason AirSim is starting on a different port, then you'll need to modify AirsimClient.py to point to the correct port (inside the constructor for CarClient).
from autonomousdrivingcookbook.
Based on this, the problem of failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED
and Could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED
is because tf is using all GPU memory, you can avoid it by allocating memory dynamically, the following code will make tf use only the memory it needs
import tensorflow as tf
from keras.backend.tensorflow_backend import set_session
config = tf.ConfigProto()
config.gpu_options.allow_growth = True # dynamically grow the memory used on the GPU
sess = tf.Session(config=config)
set_session(sess) # set this TensorFlow session as the default session for Keras
That solved the problem for me
from autonomousdrivingcookbook.
Did you make sure AirSim was running in a separate window before trying to connect to it?
from autonomousdrivingcookbook.
from autonomousdrivingcookbook.
I tried to run AirSim seperately with powershell and checked netstat.
but it does not connect to AirSim.
- Run AirSim in a seperated windows -> success.
- Checked TCP port -> normal
- Waiting for connection: -> no further progress
-----------Powershell------
PS C:\AD_Cookbook_AirSim\AD_Cookbook_AirSim> .\AD_Cookbook_Start_AirSim.ps1 landscape -windowed
Configuring AirSim for scenario landscape...
Creating configuration JSON for scenario landscape...
Attempting to write configuration json to C:\Users\Jungho\Documents\AirSim\settings.json...
Configuration json successfully written.
Starting AirSim for scenario landscape...
Executing C:\AD_Cookbook_AirSim\AD_Cookbook_AirSim\Landscape_Neighborhood\JustAssets.exe landscape -WINDOWED...
PS C:\AD_Cookbook_AirSim\AD_Cookbook_AirSim>
----------- netstat -a -----------
...
TCP 127.0.0.1:42451 DESKTOP-ONVOC78:51845 ESTABLISHED
...
TCP 127.0.0.1:51845 DESKTOP-ONVOC78:42451 ESTABLISHED
from autonomousdrivingcookbook.
Dumb question, but did you try running the rest of the cells? The cell should finish without any errors if the connection is successful. Usually, when a connection failure happens, a stack trace is printed. Is the cell freezing with the [*] forever, or does it get a number?
from autonomousdrivingcookbook.
The cell gets a number. but It prints "Waiting for connection:" and remained.
I'll check next steps ignoring this cell.
from autonomousdrivingcookbook.
If the cell gets a number (and doesn't print a big angry stack trace), then that means that it finished running and connected as expected. You can verify this by adding a print statement at the bottom of the cell.
from autonomousdrivingcookbook.
At the last cell, errors came as below.
It seems to be related to CUDA and cuDNN.
2018-03-12 23:02:16.754965: E C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\stream_executor\cuda\cuda_blas.cc:443] failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED
2018-03-12 23:02:16.767295: E C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\stream_executor\cuda\cuda_blas.cc:443] failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED
2018-03-12 23:02:16.777790: E C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\stream_executor\cuda\cuda_blas.cc:443] failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED
2018-03-12 23:02:18.146084: E C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\stream_executor\cuda\cuda_dnn.cc:385] could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED
2018-03-12 23:02:18.156164: E C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\stream_executor\cuda\cuda_dnn.cc:352] could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM
2018-03-12 23:02:18.166822: F C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\core\kernels\conv_ops.cc:717] Check failed: stream->parent()->GetConvolveAlgorithms( conv_parameters.ShouldIncludeWinogradNonfusedAlgo(), &algorithms)
from autonomousdrivingcookbook.
@edimoon777 Looks like a similar issue which has been discussed here. There are some solutions mentioned there. Can you try those?
from autonomousdrivingcookbook.
Is this issue solved?
from autonomousdrivingcookbook.
from autonomousdrivingcookbook.
Ok.
I have CUDA 9.1 and CuDNN 7.1.1.
from autonomousdrivingcookbook.
Thank you everybody. I solved this issue.
"waiting for connection" message remains even when the connection is normal.
so I suggest you to add a message such as 'Connection successful' if it's connected. (It is confusing)
I wrote a new issue that I fixed about GPU memory errors.
from autonomousdrivingcookbook.
whene i running tensorflow-gpu with airsim i haved this error :
ValueError: cannot reshape array of size 1 into shape (0,0)
how can i solve it ?
from autonomousdrivingcookbook.
Related Issues (20)
- Gear attribute in airsim_rec.txt
- Train Model Keras Issue HOT 1
- no Cooking HOT 2
- ValueError: cannot reshape array of size 1 into shape (0,0,4) HOT 1
- Fails to create test.h5 and eval.h5 in DataExplorationAndPreparation HOT 2
- Modifications for throttle prediciton
- Getting IndexError: list index out of range while running TrainModel.ipynb ([in 5]). HOT 2
- When sending the steering angle to Carclient ,should the predition angle multiply 0.69 ? HOT 1
- JSONDecodeError HOT 1
- Mr. Spryn! How can I change the Generator.py and Cooking.py to store the images in the batches in the same order as they are in the folders and then entered into the model for train?
- Kaggle AirSim End-to-End Learning to share HOT 1
- File not found error
- Help! training not starting! #urgent HOT 6
- AirsimE2EDeepLearning code seems to change the tone of my image data HOT 2
- Dataset link does not work HOT 5
- This repo is missing important files HOT 1
- AD_Cookbook_AirSim.7z download link do not work! help! HOT 3
- Do not suit for uav
- Lane Following and Collision Avoidance for Self-Driving Cars
- swerve driving strategy
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 autonomousdrivingcookbook.