Coder Social home page Coder Social logo

catchzeng / object-detection-api Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 16.0 1.8 MB

Make it easy to train and deploy Object Detection(SSD) and Image Segmentation(Mask R-CNN) Model Using TensorFlow Object Detection API.

Home Page: https://makeoptim.com/en/deep-learning/yiai-object-detection

Makefile 3.08% Python 43.04% Jupyter Notebook 53.77% Dockerfile 0.10%
object-detection tensorflow-object-detection-api image-segmentation objectdetection imagesegmentation ssd mask-rcnn rcnn tensorflow2 tensorflow

object-detection-api's Introduction

object-detection-api

Make it easy to train and deploy Object Detection(SSD) and Image Segmentation(Mask R-CNN) Model Using TensorFlow Object Detection API.

Requirements

Use the following command to check if the installation is successful.

$ conda --version
conda 4.9.2
$ protoc --version
libprotoc 3.17.1

Installation

Conda

$ conda create -n  od python=3.8.5 && conda activate od && make install
......
----------------------------------------------------------------------
Ran 24 tests in 21.869s

OK (skipped=1)

Install directly (such as in colab)

$ make install
......
----------------------------------------------------------------------
Ran 24 tests in 21.869s

OK (skipped=1)

For details, please refer to colab demo.

Note: If the installation fails, you can refer to the detailed steps in the official document.

Note: The update of cudaDNN and toolkit may not be as fast as TensorFlow. Therefore, if your machine has a GPU, after the installation is complete, you need to downgrade TensorFlow to the version supported by cudaDNN and toolkit in order to support GPU training. Take 2.8.0 as an example:

$ pip install --upgrade tf-models-official==2.8.0
$ pip install --upgrade tensorflow==2.8.0

Usage

Train

Object Detection

The easiest way to Train a Custom Object Detection Model Using TensorFlow Object Detection API

Image Segmentation

The easiest way to Train a Custom Image Segmentation Model Using TensorFlow Object Detection API Mask R-CNN

Deploy

Deploy image segmentation (Mask R-CNN) model service with TensorFlow Serving & Flask

object-detection-api's People

Contributors

catchzeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

object-detection-api's Issues

training error

File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/execute.py", line 60, in quick_execute
    inputs, attrs, num_outputs)
tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found.
  (0) Invalid argument:  indices[0] = 0 is not in [0, 0)
	 [[node GatherV2_8 (defined at /local/lib/python3.6/dist-packages/object_detection/utils/shape_utils.py:246) ]]
	 [[MultiDeviceIteratorGetNextFromShard]]
	 [[RemoteCall]]
	 [[while/body/_1/IteratorGetNext]]
	 [[Identity_11/_5982]]
  (1) Invalid argument:  indices[0] = 0 is not in [0, 0)
	 [[node GatherV2_8 (defined at /local/lib/python3.6/dist-packages/object_detection/utils/shape_utils.py:246) ]]
	 [[MultiDeviceIteratorGetNextFromShard]]
	 [[RemoteCall]]
	 [[while/body/_1/IteratorGetNext]]

got this error during training, training didn't start

Unable to train with colab

2 root error(s) found.
(0) UNIMPLEMENTED: DNN library is not found.
[[{{node functional_1/conv1_conv/Conv2D}}]]
[[StatefulPartitionedCall/SecondStagePostprocessor/BatchMultiClassNonMaxSuppression/MultiClassNonMaxSuppression/Reshape_5/_126]]
(1) UNIMPLEMENTED: DNN library is not found.
[[{{node functional_1/conv1_conv/Conv2D}}]]
0 successful operations.

Pls upload the requirements.txt , Instead of installing from make file

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.