Code Monkey home page Code Monkey logo

customvision's Introduction

HitCount

Custom Vision Demo

In this reposetory are two projects, one for the normal sized tensorflow protobuf file from azure custom vision, the other is the lite version of the same model.

Prerequisites

  • Python(3.5, 3,6, 3,7)
  • Cuda toolkit 10.0
  • CuDnn
  • pip3

Installation

You do not need to install Cuda and CuDnn but you wont have gpu hardware acceleration enabled. In laymen terms it will be slow. Do install the pip packages.

  • Cuda: I won't go into the cuda install because it's terrifying, but here is the download link. Make sure you are downloading 10.0!
  • CuDnn Download this zip and follow the readme instructions in this zip
  • Install all pip packages pip install -R requirements.txt

Usage

In both projects there is a main.py and a optimize.py. The main file is the project not optimized for cpu and gpu usage. The optimeze file is the project better optimzed than the main file (there are probably more optimisations possible) it does however run a lot faster even on just the CPU (approx: ~5 times better in my case). The following commands will work in the customVision project and in the lite version.

To use the main file:

    $ python main.py XAXwmMu8otM
    # the argument parsed is the youtube video id of the youtube video you want to detect objects in

To use the optimeze file:

    $ python optimize.py XAXwmMu8otM
    # the argument parsed is the youtube video id of the youtube video you want to detect objects in

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.