Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 41b8e35

Browse files
committed
update comments and code fixes
1 parent 9909bcf commit 41b8e35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

samples/outreach/blogs/segmentation_blogpost/image_segmentation.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
},
129129
"source": [
130130
"# Get all the files \n",
131-
"Since this tutorial will be using a dataset from Kaggle, it requires [creating an API Token](https://github.com/Kaggle/kaggle-api#api-credentials) for your Kaggle acccount, and uploading it. "
131+
"Since this tutorial will be using a dataset from Kaggle, it requires [creating an API Token](https://github.com/Kaggle/kaggle-api#api-credentials) for your Kaggle account, and uploading it. "
132132
]
133133
},
134134
{
@@ -227,7 +227,7 @@
227227
},
228228
"outputs": [],
229229
"source": [
230-
"# Download data from Kaggle and create a DataFrame.\n",
230+
"# Download data from Kaggle and unzip the files of interest. \n",
231231
"def load_data_from_zip(competition, file):\n",
232232
" with zipfile.ZipFile(os.path.join(competition, file), \"r\") as zip_ref:\n",
233233
" unzipped_file = zip_ref.namelist()[0]\n",
@@ -1177,7 +1177,7 @@
11771177
"1. Since our model architecture is already in memory, we can simply call `load_weights(save_model_path)`\n",
11781178
"2. If you wanted to load the model from scratch (in a different setting without already having the model architecture in memory) we simply call \n",
11791179
"\n",
1180-
"```model = models.load_model(save_model_path, custom_objects={'bce_dice_loss': bce_dice_loss, 'mean_iou': mean_iou,'dice_coeff': dice_coeff})```, specificing the necessary custom objects, loss and metrics, that we used to train our model. \n",
1180+
"```model = models.load_model(save_model_path, custom_objects={'bce_dice_loss': bce_dice_loss, 'dice_loss': dice_loss})```, specificing the necessary custom objects, loss and metrics, that we used to train our model. \n",
11811181
"\n",
11821182
"If you want to see more examples, check our the [keras guide](https://keras.io/getting-started/faq/#how-can-i-save-a-keras-model)!"
11831183
]
@@ -1194,7 +1194,7 @@
11941194
"source": [
11951195
"# Alternatively, load the weights directly: model.load_weights(save_model_path)\n",
11961196
"model = models.load_model(save_model_path, custom_objects={'bce_dice_loss': bce_dice_loss,\n",
1197-
" 'dice_coeff': dice_coeff})"
1197+
" 'dice_loss': dice_loss})"
11981198
]
11991199
},
12001200
{

0 commit comments

Comments
 (0)