Code Monkey home page Code Monkey logo

self-driving-car-v1's People

Contributors

aravindmanoharan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

self-driving-car-v1's Issues

Error running model

Hi,

Trying to run the code, I get the following error:

InvalidArgumentError: You must feed a value for placeholder tensor 'input_1' with dtype float and shape [?,40,40,1]
[[Node: input_1 = Placeholderdtype=DT_FLOAT, shape=[?,40,40,1], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]

During handling of the above exception, another exception occurred:

InvalidArgumentError Traceback (most recent call last)
in ()
28 # Resize every frame into 40 x 40
29 gray = cv2.resize((cv2.cvtColor(frame, cv2.COLOR_RGB2HSV))[:, :, 1], (40, 40))
---> 30 steering_angle = steering_angle_predict(gray)
31
32 cv2.imshow('frame', cv2.resize(frame, (500, 240), interpolation=cv2.INTER_AREA))

in steering_angle_predict(img)
13 img = np.array(img, dtype=np.float32)
14 img = np.reshape(img, (-1, 40, 40, 1))
---> 15 test_pred = sess.run(final_layer, feed_dict={input_layer: img})
16
17 return np.squeeze(test_pred)

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.