Skip to content

A modified Step Image to perform Object Detection on SQLFlow using TensorFlow.

License

Notifications You must be signed in to change notification settings

hectorballega/sqlflow-object-detection

Repository files navigation

SQLFlow Object Detection

About The Project

This project contains a modified step Image to perform Object Detection on SQLFlow using TensorFlow.

Project Structure

  • datasets/: this directory contains a small set of images and its annotations based on the PASCAL VOC dataset.
  • step/: the code to be called from a SQFLow client. It also contains the labels and a pre-trained model based on ResNet50.
  • Dockerfile: defines the Docker image.
  • requirements.txt: dependencies for the step image.

Usage

Build the Docker Image by running:

docker build -t <your-registry>/<image-name>:<tag> -f Dockerfile .

Push it to your own image registry:

docker push <your-registry>/<image-name>:<tag>

Call it from an extended SQLFlow query, using the TO RUN clause.

%%sqlflow
DROP TABLE IF EXISTS voc.result;
SELECT * FROM voc.annotations
TO RUN <your-registry>/<image-name>:<tag>
CMD "tf_object_detection.py",
    "--dataset=voc"
INTO result;

Resources

License

Apache License 2.0

About

A modified Step Image to perform Object Detection on SQLFlow using TensorFlow.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages