Code Monkey home page Code Monkey logo

cone-detection's Introduction

Cone detection using YOLOv2

Approach

  1. Data collection
    1. Created a dataset of ~300 manually annotated instances of all the 5 colors of traffic cones
  2. Setup my the environment in ubuntu to make ros node
    1. Trouble with the ROS source and Py3. They do not work well together.
    2. After trying yolov3 ,darknet, I decided darkflow was the best way
  3. Detection without cones - Getting the basics right
    1. Object detection with darkflow.

    output

    Check output/code here

    1. Object detection in video

    video

  4. Training the model on my "CPU" (laptop)
    1. I trained 200 videos on my laptop in windows in couple of hours but in after changing to ubuntu for this training program, the epoch per hour for these 'image' dataset is so high.
    2. Found pretrained weights but no config file. Morphed many configs and experimented, no use.
  5. Turning to Google colabs
    1. Redone the entire setup again My colab GPU env. Entire darkflow, dataset, models and configurations in the above link. (Note : Not fully functoning)
    2. Got struck training in colab due to format/access errors raised by google drive.

 3) Modified darkflow's util functions

Modification

  1. Editing out all the conflicts Darkflow had with GDrive and hardcoded the classes and model config. It kind of works.
    1. model - tiny yolo
    2. training- 300 images
    3. epoch -100,200 - 5k , 10k steps
    4. convergence - ~1
    5. GPU- Tesla 180 - colabs
    6. FPS- 4 on cpu and trained on tiny yolo architecture with ~200 epoch- 10k steps for 5 hours on tesla GPU in colab. Checkpoints however werent stored (didnt even prompt an error) after 5000 steps. Testing on the video provided at a speed of 4 FPS on a CPU. And the result looked something like this. cones and whole video is here. It detects blueCones pretty well but not white. Intrestingly I provided more orange samples than the blues

cone-detection's People

Contributors

bsridatta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cone-detection's Issues

Regarding Dataset

Hi, I am curious regarding how did you collect the dataset? I want to collect more cone images, how can I proceed?
Thanks.

Dataset Request

Hello.

My name is Daniel Batista. I am participating in the Formula Student competition with a team from Leiria. I kindly request access to your dataset url, because the current one is broken.

Much appreciated and best regards
Daniel

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.