GithubHelp home page GithubHelp logo

tfrecord-scripts's Introduction

Scripts for tfrecord files

  • merge_tfrecords.py will combine the data from multiple tfrecord files into one file.
  • verify_tfrecord.py will draw bounding boxes on images one at a time. Looking at a few of these images is a good sanity check before you start training.
  • checkpoint_server.py will start a Gabriel server to process frames using an object detector from checkpoint files.
  • saved_model_server.py will start a Gabriel server to process frames using an object detector from saved model files.
  • remove_dup.py creates a new version of a tfrecord file where each image has a unique perceptual hash value.

Usage

Build the Docker container for TensorFlow Object detection by following these instructions.

Start the container with a volume map to the directory with your checkpoint files. Convert a checkpoint to a saved model by running:

python object_detection/exporter_main_v2.py --input_type image_tensor --pipeline_config_path <PATH TO pipeline.config> \
--trained_checkpoint_dir <Path to model_dir> --output_directory <Where to save model>

from ~/models/research in the container.

The two server scripts in this repository work with the clients in this directory.

Run python3 -m pip install imagehash to use remove_dup.py.

tfrecord-scripts's People

Contributors

akindofyoga avatar

Watchers

Jan Harkes avatar James Cloos avatar Mahadev Satyanarayanan avatar Thomas Eiszler avatar  avatar

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.