Coder Social home page Coder Social logo

Comments (15)

mitchellspryn avatar mitchellspryn commented on September 21, 2024 1
  1. Are you passing the 'landscape' argument to the ps script? It should be started with

.\AD_Cookbook_Start_AirSim.ps1 landscape -windowed

  1. 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.

NotAnyMike avatar NotAnyMike commented on September 21, 2024 1

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.

adshar avatar adshar commented on September 21, 2024

Did you make sure AirSim was running in a separate window before trying to connect to it?

from autonomousdrivingcookbook.

edimoon777 avatar edimoon777 commented on September 21, 2024

from autonomousdrivingcookbook.

edimoon777 avatar edimoon777 commented on September 21, 2024

I tried to run AirSim seperately with powershell and checked netstat.
but it does not connect to AirSim.

  1. Run AirSim in a seperated windows -> success.
  2. Checked TCP port -> normal
  3. 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.

mitchellspryn avatar mitchellspryn commented on September 21, 2024

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.

edimoon777 avatar edimoon777 commented on September 21, 2024

The cell gets a number. but It prints "Waiting for connection:" and remained.
I'll check next steps ignoring this cell.

from autonomousdrivingcookbook.

mitchellspryn avatar mitchellspryn commented on September 21, 2024

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.

edimoon777 avatar edimoon777 commented on September 21, 2024

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.

shrimalmadhur avatar shrimalmadhur commented on September 21, 2024

@edimoon777 Looks like a similar issue which has been discussed here. There are some solutions mentioned there. Can you try those?

from autonomousdrivingcookbook.

mitchellspryn avatar mitchellspryn commented on September 21, 2024

Is this issue solved?

from autonomousdrivingcookbook.

edimoon777 avatar edimoon777 commented on September 21, 2024

from autonomousdrivingcookbook.

mitchellspryn avatar mitchellspryn commented on September 21, 2024

Ok.

I have CUDA 9.1 and CuDNN 7.1.1.

from autonomousdrivingcookbook.

edimoon777 avatar edimoon777 commented on September 21, 2024

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.

yosra5 avatar yosra5 commented on September 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.