https://github.com/abhifuturetech/object-detection-via-tensorflow
Use the Tensorflow Object Detection API with Tensorflow 2
https://github.com/abhifuturetech/object-detection-via-tensorflow
api computer-vision docker image-recognition machine-learning python tensorflow tensorflow2
Last synced: about 1 year ago
JSON representation
Use the Tensorflow Object Detection API with Tensorflow 2
- Host: GitHub
- URL: https://github.com/abhifuturetech/object-detection-via-tensorflow
- Owner: AbhiFutureTech
- Created: 2024-05-11T03:58:00.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-31T15:09:20.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T19:16:59.684Z (almost 2 years ago)
- Topics: api, computer-vision, docker, image-recognition, machine-learning, python, tensorflow, tensorflow2
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tensorflow Object Detection with Tensorflow 2

## Installation
You can install the TensorFlow Object Detection API either with Python Package Installer (pip) or [Docker](https://www.docker.com/), an open-source platform for deploying and managing containerized applications.
### Docker Installation
```
# From the root of the git repository (inside the models directory)
docker build -f research/object_detection/dockerfiles/tf2/Dockerfile -t od .
docker run -it od
```
### Python Package Installation
```
cd models/research
# Compile protos.
protoc object_detection/protos/*.proto --python_out=.
# Install TensorFlow Object Detection API.
cp object_detection/packages/tf2/setup.py .
python -m pip install .
```
```python
import os
import sys
args = sys.argv
directory = args[1]
protoc_path = args[2]
for file in os.listdir(directory):
if file.endswith(".proto"):
os.system(protoc_path+" "+directory+"/"+file+" --python_out=.")
```
```
python use_protobuf.py
```
To test the installation run:
```
# Test the installation.
python object_detection/builders/model_builder_tf2_test.py
```