Commit 0d76b69f authored by Yukun Zhu's avatar Yukun Zhu Committed by aquariusjay
Browse files

Update colab demo (#6652)

* Update colab demo

* fix typo
parent 4698a41e
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
"source": [ "source": [
"# Overview\n", "# Overview\n",
"\n", "\n",
"This demo will demostrate the steps to use the DeepLab model to perform semantic segmentation on a sample input image. Expected outputs are semantic labels overlayed on the sample image.\n", "This colab demonstrates the steps to use the DeepLab model to perform semantic segmentation on a sample input image. Expected outputs are semantic labels overlayed on the sample image.\n",
"\n", "\n",
"### What is DeepLab\n", "### About DeepLab\n",
"Models used in this colab perform semantic segmentation. Semantic segmentation models focus on assigning semantic labels (e.g. sky, person, car) to multiple objects and stuff in a single image." "The models used in this colab perform semantic segmentation. Semantic segmentation models focus on assigning semantic labels, such as sky, person, or car, to multiple objects and stuff in a single image."
] ]
}, },
{ {
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
"\u003ch3\u003e\u003ca href=\"https://cloud.google.com/tpu/\"\u003e\u003cimg valign=\"middle\" src=\"https://raw.githubusercontent.com/GoogleCloudPlatform/tensorflow-without-a-phd/master/tensorflow-rl-pong/images/tpu-hexagon.png\" width=\"50\"\u003e\u003c/a\u003e \u0026nbsp;\u0026nbsp;Use a free TPU device\u003c/h3\u003e\n", "\u003ch3\u003e\u003ca href=\"https://cloud.google.com/tpu/\"\u003e\u003cimg valign=\"middle\" src=\"https://raw.githubusercontent.com/GoogleCloudPlatform/tensorflow-without-a-phd/master/tensorflow-rl-pong/images/tpu-hexagon.png\" width=\"50\"\u003e\u003c/a\u003e \u0026nbsp;\u0026nbsp;Use a free TPU device\u003c/h3\u003e\n",
"\n", "\n",
" 1. On the main menu, click Runtime and select **Change runtime type**. Set \"TPU\" as the hardware accelerator.\n", " 1. On the main menu, click Runtime and select **Change runtime type**. Set \"TPU\" as the hardware accelerator.\n",
" 1. Click Runtime again and select **Runtime \u003e Run All** (Watch out: the \"Colab-only auth for this notebook and the TPU\" cell requires user input). You can also run the cells manually with Shift-ENTER." " 1. Click Runtime again and select **Runtime \u003e Run All**. You can also run the cells manually with Shift-ENTER."
] ]
}, },
{ {
...@@ -72,11 +72,11 @@ ...@@ -72,11 +72,11 @@
}, },
"source": [ "source": [
"## Import helper methods\n", "## Import helper methods\n",
"These methods will help us perform the following tasks:\n", "These methods help us perform the following tasks:\n",
"* Load the latest version of the pretrained DeepLab model\n", "* Load the latest version of the pretrained DeepLab model\n",
"* Load the colormap from the PASCAL VOC dataset\n", "* Load the colormap from the PASCAL VOC dataset\n",
"* Adds colors to various labels (For example, \"pink\" for people, \"green\" for bicycle and more)\n", "* Adds colors to various labels, such as \"pink\" for people, \"green\" for bicycle and more\n",
"* Visualize an image, and add an overlay of colors on various regions." "* Visualize an image, and add an overlay of colors on various regions"
] ]
}, },
{ {
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
}, },
"source": [ "source": [
"## Select a pretrained model\n", "## Select a pretrained model\n",
"We have trained the DeepLab model using various backbone networks that you can choose form." "We have trained the DeepLab model using various backbone networks. Select one from the MODEL_NAME list."
] ]
}, },
{ {
...@@ -290,9 +290,9 @@ ...@@ -290,9 +290,9 @@
"Select one of sample images (leave `IMAGE_URL` empty) or feed any internet image\n", "Select one of sample images (leave `IMAGE_URL` empty) or feed any internet image\n",
"url for inference.\n", "url for inference.\n",
"\n", "\n",
"Note that we are using single scale inference in the demo for fast computation,\n", "Note that this colab uses single scale inference for fast computation,\n",
"so the results may slightly differ from the visualizations in\n", "so the results may slightly differ from the visualizations in the \n",
"[README](https://github.com/tensorflow/models/blob/master/research/deeplab/README.md),\n", "[README](https://github.com/tensorflow/models/blob/master/research/deeplab/README.md) file,\n",
"which uses multi-scale and left-right flipped inputs." "which uses multi-scale and left-right flipped inputs."
] ]
}, },
...@@ -346,7 +346,7 @@ ...@@ -346,7 +346,7 @@
"\n", "\n",
"* Learn about [Cloud TPUs](https://cloud.google.com/tpu/docs) that Google designed and optimized specifically to speed up and scale up ML workloads for training and inference and to enable ML engineers and researchers to iterate more quickly.\n", "* Learn about [Cloud TPUs](https://cloud.google.com/tpu/docs) that Google designed and optimized specifically to speed up and scale up ML workloads for training and inference and to enable ML engineers and researchers to iterate more quickly.\n",
"* Explore the range of [Cloud TPU tutorials and Colabs](https://cloud.google.com/tpu/docs/tutorials) to find other examples that can be used when implementing your ML project.\n", "* Explore the range of [Cloud TPU tutorials and Colabs](https://cloud.google.com/tpu/docs/tutorials) to find other examples that can be used when implementing your ML project.\n",
"* [Here's](https://cloud.google.com/tpu/docs/tutorials/deeplab) a direct link to the DeepLab tutorial.\n" "* For more information on running the DeepLab model on Cloud TPUs, see the [DeepLab tutorial](https://cloud.google.com/tpu/docs/tutorials/deeplab).\n"
] ]
} }
], ],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment