Skip to content

seven-dev/simple_object_recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Object Recognition

Goals of this project

  • Train a custom object recognition model
  • Have a demo running in the browser

Run the demo

Open './demo/index.html' in the browser and it should work.

Installation - To create/train the model

    # Create a virtual environment to install the required packages
    # python3.7 is not supported by tensorflow
    python3.6 -m venv .venv
    # Activate the virtual enviroment
    source .venv/bin/activate
    # Upgrade pip
    pip install --upgrade pip
    pip install tensorflow==2.0.0-alpha0 jupyter matplotlib
    # (Maybe in the future I'll add a requirements file)

Instalation - To convert the model to tensorflowjs

Because package 'tensorflowjs' installs other versions of the same packages, I install it on another virtual env. After installing it take a look at the file 'src/convert_model_to_js.sh' to convert it.

    # Create a virtual environment to install the required packages
    python3.6 -m venv .venv2
    # Activate the virtual enviroment
    source .venv2/bin/activate
    # Upgrade pip
    pip install --upgrade pip
    # Install the requirements
    #pip install -r requirements.txt
    pip install tensorflowjs tensorflow
    pip install numpy --upgrade
    # To make sure it works:
    tensorflowjs_converter --version

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published