Giter Site home page Giter Site logo

naokishibuya / car-traffic-sign-classification Goto Github PK

View Code? Open in Web Editor NEW
37.0 37.0 17.0 30.58 MB

Built and trained a deep neural network to classify traffic signs using Tensorflow

License: MIT License

Jupyter Notebook 49.11% Python 0.07% HTML 50.82%

car-traffic-sign-classification's People

Contributors

naokishibuya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

car-traffic-sign-classification's Issues

Always gives an output

Hello sir,
I'm working on the same project, for my senior.
I trained my model and everything is working fine if I am using pictures of traffic signs, but when I used a picture of a dog, it shows me that it is a: Road work!
I tried other pictures too, they are showing me the same thing, wrong detection.
So, what it is doing is always giving an output, even though there is nothing to detect in the picture!
Any idea how to solve this problem?
I thought about making a threshold for the probability, but it won't work all the time.
Is there any special function/method to do this, since I am new to CNN and TF, I do not know all capabilities of it.

Got this error when running the code right under The First Performance.

TypeErrorTraceback (most recent call last)
in ()
1 with Session() as session:
2 functions = [loader]
----> 3 pipeline = build_pipeline(functions, session, make_network1(), make_adam(1.0e-3))
4 train_evaluate(pipeline)

in make_network1(input_shape)
3 def make_network1(input_shape=INPUT_SHAPE):
4 return (NeuralNetwork()
----> 5 .input(input_shape)
6 .conv([5, 5, 6])
7 .max_pool()

/home/linux/dsmlp/70/770/cg181fcp/final_project/pipeline/network.py in input(self, shape)
57 """
58 with self.variable_scope('input'):
---> 59 self.x = tf.placeholder(tf.float32, (None, shape),name='x')
60 self.y = tf.placeholder(tf.int64, (None), name='y')
61 self.is_training = tf.placeholder(tf.bool, name='is_training')

/opt/conda/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.pyc in placeholder(dtype, shape, name)
1603 evaluated directly.
1604 """
-> 1605 return gen_array_ops._placeholder(dtype=dtype, shape=shape, name=name)
1606
1607

/opt/conda/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.pyc in _placeholder(dtype, shape, name)
3085 if shape is None:
3086 shape = None
-> 3087 shape = _execute.make_shape(shape, "shape")
3088 _ctx = _context.context()
3089 if _ctx.in_graph_mode():

/opt/conda/lib/python2.7/site-packages/tensorflow/python/eager/execute.pyc in make_shape(v, arg_name)
144 shape = tensor_shape.as_shape(v)
145 except TypeError as e:
--> 146 raise TypeError("Error converting %s to a TensorShape: %s." % (arg_name, e))
147 except ValueError as e:
148 raise ValueError("Error converting %s to a TensorShape: %s." % (arg_name,

TypeError: Error converting shape to a TensorShape: int() argument must be a string or a number, not 'tuple'.

My tensorflow version is 1.4.0-dev20171012.

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.