You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,11 @@
4
4
5
5
# IBM Developer Model Asset Exchange: Object Detector
6
6
7
-
This repository contains code to instantiate and deploy an object detection model. This model recognizes the objects present in an image from the 80 different high-level classes of objects in the [COCO Dataset](http://mscoco.org/). The model consists of a deep convolutional net base model for image feature extraction, together with additional convolutional layers specialized for the task of object detection, that was trained on the COCO data set. The input to the model is an image, and the output is a list of estimated class probabilities for the objects detected in the image.
7
+
This repository contains code to instantiate and deploy an object detection model. This model recognizes the objects
8
+
present in an image from the 80 different high-level classes of objects in the [COCO Dataset](http://mscoco.org/). The
9
+
model consists of a deep convolutional net base model for image feature extraction, together with additional
10
+
convolutional layers specialized for the task of object detection, that was trained on the COCO data set. The input to
11
+
the model is an image, and the output is a list of estimated class probabilities for the objects detected in the image.
8
12
9
13
The model is based on the [SSD Mobilenet V1 and Faster RCNN ResNet101 object detection model for TensorFlow](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md). The model files are hosted on IBM Cloud Object Storage: [ssd_mobilenet_v1.tar.gz](https://max-cdn.cdn.appdomain.cloud/max-object-detector/1.0.2/ssd_mobilenet_v1.tar.gz) and [faster_rcnn_resnet101.tar.gz](https://max-cdn.cdn.appdomain.cloud/max-object-detector/1.0.2/faster_rcnn_resnet101.tar.gz). The code in this repository deploys the model as a web service in a Docker container. This repository was developed as part of the [IBM Developer Model Asset Exchange](https://developer.ibm.com/exchanges/models/) and the public API is powered by [IBM Cloud](https://ibm.biz/Bdz2XM).
10
14
@@ -50,20 +54,22 @@ To run the docker image, which automatically starts the model serving API, run:
50
54
51
55
Intel CPUs:
52
56
```bash
53
-
$ docker run -it -p 5000:5000 codait/max-object-detector
57
+
$ docker run -it -p 5000:5000 quay.io/codait/max-object-detector
54
58
```
55
59
56
60
ARM CPUs (eg Raspberry Pi):
57
61
```bash
58
-
$ docker run -it -p 5000:5000 codait/max-object-detector:arm-arm32v7-latest
62
+
$ docker run -it -p 5000:5000 quay.io/codait/max-object-detector:arm-arm32v7-latest
59
63
```
60
64
61
65
This will pull a pre-built image from Docker Hub (or use an existing image if already cached locally) and run it.
62
66
If you'd rather checkout and build the model locally you can follow the [run locally](#run-locally) steps below.
63
67
64
68
## Deploy on Red Hat OpenShift
65
69
66
-
You can deploy the model-serving microservice on Red Hat OpenShift by following the instructions for the OpenShift web console or the OpenShift Container Platform CLI [in this tutorial](https://developer.ibm.com/tutorials/deploy-a-model-asset-exchange-microservice-on-red-hat-openshift/), specifying `codait/max-object-detector` as the image name.
70
+
You can deploy the model-serving microservice on Red Hat OpenShift by following the instructions for the OpenShift web
71
+
console or the OpenShift Container Platform CLI in [this tutorial](https://developer.ibm.com/tutorials/deploy-a-model-asset-exchange-microservice-on-red-hat-openshift/),
72
+
specifying `quay.io/codait/max-object-detector` as the image name.
The model will be available internally at port `5000`, but can also be accessed externally through the `NodePort`.
79
85
80
-
A more elaborate tutorial on how to deploy this MAX model to production on [IBM Cloud](https://ibm.biz/Bdz2XM) can be found [here](http://ibm.biz/max-to-ibm-cloud-tutorial).
86
+
A more elaborate tutorial on how to deploy this MAX model to production on [IBM Cloud](https://ibm.biz/Bdz2XM) can be
87
+
found [here](http://ibm.biz/max-to-ibm-cloud-tutorial).
81
88
82
89
## Run Locally
83
90
@@ -222,7 +229,7 @@ and provides interactive visualization of the bounding boxes and their related l
222
229
If you wish to disable the web app, start the model serving API by running:
223
230
224
231
```bash
225
-
$ docker run -it -p 5000:5000 -e DISABLE_WEB_APP=true codait/max-object-detector
232
+
$ docker run -it -p 5000:5000 -e DISABLE_WEB_APP=true quay.io/codait/max-object-detector
0 commit comments