Skip to content
Golang Web API Server to serve Inception model with RESTful multipart POST
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
.gitignore
Dockerfile
LICENSE
README.md
api.go
imagenet_comp_graph_label_strings.txt
main.go
tensorflow_inception_graph.pb
tf.go

README.md

tf-go-inception: A Go API server to serve Tensorflow Inception Model

Join the chat at https://gitter.im/kkdai/tf-go-inception

GoDoc Build Status

goreportcard.com

How to build it

  • Install Go 1.8
  • Download tensorflow prebuild library
TF_TYPE="cpu" # Set to "gpu" for GPU support
curl -L \
  "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-${TF_TYPE}-$(go env GOOS)-x86_64-1.1.0.tar.gz" |
sudo tar -C /usr/local -xz
  • Change your LD_LIBRARY path export LD_LIBRARY_PATH=/usr/local/lib/
  • Clone this repo
  • Just build it go build
  • Run this web server it will default port 3000

API List:

  • /api/v1/tf-image: POST API to upload image in multipart "upload".
  • /api/v1/foo: Testing API and just response "bar".

How to use it

TBC

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You can’t perform that action at this time.