Git Product home page Git Product logo

tf-object-detection-viewer's Introduction

TensorFlow object detection viewer

This repo includes code to perform, and above all, visualize, object detection on:

  • a) a cam feed (your webcam) :: *_cam_detect.py

  • b) video feed (some video saved on your disk) :: *_video_detect.py

and so far supports two detection model formats:

  • i) Tensorflow frozen graph (protobuf) :: tf_*
  • ii) Tensorflow Lite (only with cam feed for now) :: tflite_*
  • iii) Coral (yet to be supported)

Currently supported implementations are indicated by the *.py scripts at the root of this repo.

how to pass your model files

You need to have these files depending on what you want to run.

Model format Essential files (names are not strict ofc) Scripts to edit/use
i) Tensorflow - *.pb frozen graph file (protobuf)
- *.pbtxt a graph configuration file
tf_*
ii) Tensorflow Lite - *.tflite lite-converted frozen graph file
- *.pbtxt labels text file
tflite_*

The practice established in this repo is that you save these files to the ./tf_files folder. A prototype whale/dolphin detection model is available here so you can get started. Place these files into the ./tf_filesfolder and adjust the paths in the scripts if need be. You can also pass these paths via command line, as per the following example --help output. All root ./*.py scripts have this option available.

$ python tf_cam_detect.py --help
usage: tf_cam_detect.py [-h] [-m GRAPH_PB] [-c GRAPH_CONFIG] [-p MIN_PROB]

optional arguments:
  -h, --help            show this help message and exit
  -m GRAPH_PB, --graph_pb GRAPH_PB
                        path to Tensorflow protobuf object detection model
  -c GRAPH_CONFIG, --graph_config GRAPH_CONFIG
                        path to pbtxt graph config file
  -p MIN_PROB, --min_prob MIN_PROB
                        minimum probability to filter detections

how to train your own model and obtain model files

Besides all you can find on the webs, you can start with this wiki, written with this repo in mind. Also, this project started with this article from Tony607 (and its associated repo).

tf-object-detection-viewer's People

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

yunwonjoon

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.