Git Product home page Git Product logo

dineshresearch / novel-deep-learning-model-for-traffic-sign-detection-using-capsule-networks Goto Github PK

View Code? Open in Web Editor NEW
124.0 10.0 51.0 4.68 MB

capsule networks that achieves outstanding performance on the German traffic sign dataset

License: MIT License

Jupyter Notebook 97.45% Python 2.55%
capsule-network traffic-sign-classification traffic-sign-recognition traffic-sign-detection deeplearning computervision autonomous-vehicles autonomous-driving

novel-deep-learning-model-for-traffic-sign-detection-using-capsule-networks's Introduction

Novel-Deep-Learning-Model-for-Traffic-Sign-Detection-Using-Capsule-Networks

capsule networks that achieves outstanding performance on the German traffic sign dataset

paper link https://arxiv.org/abs/1805.04424

Abstract

Convolutional neural networks are the most widely used deep learning algorithms for traffic signal classification till date but they fail to capture pose, view, orientation of the images because of the intrinsic inability of max pooling layer.This paper proposes a novel method for Traffic sign detection using deep learning architecture called capsule networks that achieves outstanding performance on the German traffic sign dataset.Capsule network consists of capsules which are a group of neurons representing the instantiating parameters of an object like the pose and orientation by using the dynamic routing and route by agreement algorithms.unlike the previous approaches of manual feature extraction,multiple deep neural networks with many parameters,our method eliminates the manual effort and provides resistance to the spatial variances.CNNs can be fooled easily using various adversary attacks and capsule networks can overcome such attacks from the intruders and can offer more reliability in traffic sign detection for autonomous vehicles.Capsule network have achieved the state-of-the-art accuracy of 97.6% on German Traffic Sign Recognition Benchmark dataset (GTSRB).

you can download the dataset from the below link

https://drive.google.com/open?id=1zzOP3Kg4SIOyYmh89yOF9PeEEpALxh_k

steps to run

1)Install all the dependencies
Tensorflow,Keras,Numpy,Pandas,Pickle,Matplotlib
2)Run the ipython notebook file Traffic_Sign_Classifier-Copy1.ipynb using jupyter notebook

you can cite this paper if you are using this code for your research

@article{kumar2018novel,
title={Novel Deep Learning Model for Traffic Sign Detection Using Capsule Networks},
author={Kumar, Amara Dinesh},
journal={arXiv preprint arXiv:1805.04424},
year={2018}
}

MIT License

Copyright (c) 2018 Dinesh Kumar Amara

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

novel-deep-learning-model-for-traffic-sign-detection-using-capsule-networks's People

Contributors

dineshresearch 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  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  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  avatar  avatar  avatar  avatar  avatar

novel-deep-learning-model-for-traffic-sign-detection-using-capsule-networks's Issues

error

i am getting an error file not found while running the modelbase

Version usage

Hi,

I was trying to set up your project, when I stumbled upon a few issues:

  1. PIL seems to be missing in your "needs to be installed" list
  2. It would be great to know which version of which package should be used
  3. It would be nice to know the python version used as PIL apparently is not supporting any Python version from 3 onward

NotFoundError: Failed to create a directory: outputs/tensorboard/TrafficSign/c1s_5_c2n_64_lr_0.0001_c1vl_16_rs_1_c2vl_32_c1nf_16_c1s_9_c1n_256_c2d_0.7_c2s_6-train--TrafficSign--1537421960.3313408; No such file or directory

Hi,

I am trying to implement this ( https://github.com/dineshresearch/Novel-Deep-Learning-Model-for-Traffic-Sign-Detection-Using-Capsule-Networks/blob/master/Traffic_Sign_Classifier-test.ipynb ) but getting the below error when I initialize this model:
`---------------------------------------------------------------------------

NotFoundError Traceback (most recent call last)
in ()
1 # Init model
2 model = ModelTrafficSign("TrafficSign", output_folder="outputs")
----> 3 model.init()

in init(self)
143 self.tf_test = tf.random_uniform([2], minval=0, maxval=None, dtype=tf.float32, seed=None, name="tf_test")
144
--> 145 self.init_session()
146
147

~\Desktop\Novel-Deep-Learning-Model-for-Traffic-Sign-Detection-Using-Capsule-Networks-master\model_base.py in init_session(self)
142 test_log_name = os.path.join(
143 os.path.join(self.output_folder, "tensorboard"), self.name, self.sub_test_log_name)
--> 144 self.train_writer = tf.summary.FileWriter(train_log_name, self.sess.graph)
145 self.test_writer = tf.summary.FileWriter(test_log_name)
146 self.train_writer_it = 0

~\AppData\Local\Continuum\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\summary\writer\writer.py in init(self, logdir, graph, max_queue, flush_secs, graph_def, filename_suffix, session)
364 else:
365 event_writer = EventFileWriter(logdir, max_queue, flush_secs,
--> 366 filename_suffix)
367 super(FileWriter, self).init(event_writer, graph, graph_def)
368

~\AppData\Local\Continuum\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\summary\writer\event_file_writer.py in init(self, logdir, max_queue, flush_secs, filename_suffix)
65 self._logdir = logdir
66 if not gfile.IsDirectory(self._logdir):
---> 67 gfile.MakeDirs(self._logdir)
68 self._event_queue = six.moves.queue.Queue(max_queue)
69 self._ev_writer = pywrap_tensorflow.EventsWriter(

~\AppData\Local\Continuum\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\lib\io\file_io.py in recursive_create_dir(dirname)
377 """
378 with errors.raise_exception_on_not_ok_status() as status:
--> 379 pywrap_tensorflow.RecursivelyCreateDir(compat.as_bytes(dirname), status)
380
381

~\AppData\Local\Continuum\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\errors_impl.py in exit(self, type_arg, value_arg, traceback_arg)
517 None, None,
518 compat.as_text(c_api.TF_Message(self.status.status)),
--> 519 c_api.TF_GetCode(self.status.status))
520 # Delete the underlying status object from memory otherwise it stays alive
521 # as there is a reference to status from this from the traceback due to

NotFoundError: Failed to create a directory: outputs/tensorboard/TrafficSign/c1s_5_c2n_64_lr_0.0001_c1vl_16_rs_1_c2vl_32_c1nf_16_c1s_9_c1n_256_c2d_0.7_c2s_6-train--TrafficSign--1537421960.3313408; No such file or directory

`

Could you please help?

Seems to be Classification

Hi, this problem nowhere seems to be classification. It's a simple classification problem with capsule networks instead of MNISt?

error

I am getting "No such file or directory: 'from_web'"error

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.