Resnet50v2 scoring in Go
Tool to classify an image with the ResNet50v2 model from the ONNX Model Zoo. The tool expects a running container based on the gbaeke/onnxresnet50v2 image.
Use the following command to start the container:
docker run -d -p 5001:5001 gbaeke/onnxresnet50v2
Use tool as follows:
./class -image image-path -uri score-uri
e.g. ./class -image images/cat.jpg -uri http://38.22.33.22/score
The container exposes a scoring URI at http://localhost:5001/score. That URI is the default URI. Override the URI with the -uri flag.
Download tool for Linux from releases: Download
Download tool for Windows from releases: Download