Skip to content

Commit

Permalink
Lint and update Boundless notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
8bitmp3 authored Oct 30, 2023
1 parent 4d108a9 commit f3bc520
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions site/en/hub/tutorials/boundless.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@
"id": "hDKbpAEZf8Lt"
},
"source": [
"## Imports and Setup\n",
"## Imports and setup\n",
"\n",
"Lets start with the base imports."
"Start with the base imports:"
]
},
{
Expand All @@ -110,9 +110,9 @@
"id": "pigUDIXtciQO"
},
"source": [
"## Reading image for input\n",
"## Create a function for reading an image\n",
"\n",
"Lets create a util method to help load the image and format it for the model (257x257x3). This method will also crop the image to a square to avoid distortion and you can use with local images or from the internet."
"Create a utility function to help load an image and format it for the model (257x257x3). This method will also crop the image to a square to avoid distortion and you can use it with local images or from the internet."
]
},
{
Expand Down Expand Up @@ -147,9 +147,9 @@
"id": "lonrLxuKcsL0"
},
"source": [
"## Visualization method\n",
"## Create a visualization function\n",
"\n",
"We will also create a visuzalization method to show the original image side by side with the masked version and the \"filled\" version, both generated by the model."
"Create a visualization function to show the original image side-by-side with the masked version and the \"filled\" version, both generated by the model."
]
},
{
Expand Down Expand Up @@ -183,9 +183,9 @@
"id": "8rwaCWmxdJGH"
},
"source": [
"## Loading an Image\n",
"## Load an image\n",
"\n",
"You will load a sample image but feel free to upload your own image to the Colab notebook. Remember that the model may have some limitations regarding human images."
"Now you can load a sample image. Feel free to use your own image by uploading it to the Colab notebook. Remember that the model may have some limitations regarding human images."
]
},
{
Expand All @@ -210,10 +210,10 @@
"id": "4lIkmZL_dtyX"
},
"source": [
"## Selecting a model from TensorFlow Hub\n",
"## Select a model from TensorFlow Hub\n",
"\n",
"On TensorFlow Hub we have 3 versions of the Boundless model: Half, Quarter and Three Quarters.\n",
"In the following cell you can chose any of them and try on your image. If you want to try with another one, just chose it and execute the following cells."
"On TensorFlow Hub there are three versions of the Boundless model: Half, Quarter and Three Quarters.\n",
"In the following cell you can choose any of the models and apply them on your image. If you want to pick another model, select it below and then run the following cells."
]
},
{
Expand Down Expand Up @@ -241,9 +241,9 @@
"id": "aSJFeNNSeOn8"
},
"source": [
"Now that we've chosen the model we want, lets load it from TensorFlow Hub.\n",
"After choosing your model, you can load it from TensorFlow Hub.\n",
"\n",
"**Note**: You can point your browser to the model handle to read the model's documentation."
"**Note**: You can point to a model handle to read the model's documentation."
]
},
{
Expand All @@ -264,14 +264,14 @@
"id": "L4G7CPOaeuQb"
},
"source": [
"## Doing Inference\n",
"## Perform inference\n",
"\n",
"The boundless model have two outputs:\n",
"The boundless model has two outputs:\n",
"\n",
"* The input image with a mask applied\n",
"* The masked image with the extrapolation to complete it\n",
"\n",
"we can use these two images to show a comparisson visualization."
"You can compare these two images with a visualization as follows:"
]
},
{
Expand Down

0 comments on commit f3bc520

Please sign in to comment.