From 5cfbe508673a73c8f19a2d9d61661316208f3e42 Mon Sep 17 00:00:00 2001 From: TensorFlow Hub Authors Date: Fri, 7 Sep 2018 14:36:44 +0200 Subject: [PATCH] Add object detection colab to index. PiperOrigin-RevId: 211961102 --- examples/README.md | 6 ++++++ examples/colab/object_detection.ipynb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/README.md b/examples/README.md index 3cce54a89..5213bf64a 100644 --- a/examples/README.md +++ b/examples/README.md @@ -27,6 +27,12 @@ Explores action recognition from video. Exemplifies use of the [DELF Module](https://tfhub.dev/google/delf/1) for landmark recognition and matching. +#### [`colab/object_detection.ipynb`](colab/object_detection.ipynb) + +Explores object detection with the use of the +[Faster R-CNN module trained on Open Images v4](https://tfhub.dev/google/faster_rcnn/openimages_v4/inception_resnet_v2/1). + + ## Python scripts #### [`image_retraining`](image_retraining) diff --git a/examples/colab/object_detection.ipynb b/examples/colab/object_detection.ipynb index d7012d5b7..774cd1b93 100644 --- a/examples/colab/object_detection.ipynb +++ b/examples/colab/object_detection.ipynb @@ -359,7 +359,7 @@ " [result, decoded_image],\n", " feed_dict={image_string_placeholder: image_string})\n", " print(\"Found %d objects.\" % len(result_out[\"detection_scores\"]))\n", - " print(\"Inference took %.2f seconds\" % (time.clock()-inference_start_time))\n", + " print(\"Inference took %.2f seconds.\" % (time.clock()-inference_start_time))\n", "\n", " image_with_boxes = draw_boxes(\n", " np.array(image_out), result_out[\"detection_boxes\"],\n",