How to properly serve an object detection model from Tensorflow Object Detection API?

前端 未结 4 1039
清歌不尽
清歌不尽 2021-02-15 23:06

I am using Tensorflow Object Detection API(github.com/tensorflow/models/tree/master/object_detection) with one object detection task. Right now I am having problem on serving th

4条回答
  •  一向
    一向 (楼主)
    2021-02-15 23:50

    I was struggling with the exact problem. I was trying to host the pre-trained SSDMobileNet-COCO checkpoint from Tensorflow Object Detection API Zoo

    Turns out I was using an old commit of tensorflow/models which happens to be the default sub-module of serving

    I simply pulled the recent commit with

    cd serving/tf_models git pull origin master git checkout master

    After that, built the model server again.

    bazel build //tensorflow_serving/model_servers:tensorflow_model_server

    The error went away and I was able to get accurate predictions

提交回复
热议问题