Skip to content

Commit 3fd83b2

Browse files
committed
Updated Transfer learning labs
1 parent 5f846c8 commit 3fd83b2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

05c - Transfer Learning (PyTorch).ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@
448448
],
449449
"metadata": {
450450
"kernelspec": {
451-
"name": "python_defaultSpec_1597787964136",
452-
"display_name": "Python 3.7.6 64-bit ('base': conda)",
451+
"name": "python3",
452+
"display_name": "Python 3",
453453
"language": "python"
454454
},
455455
"language_info": {

05c - Transfer Learning (Tensorflow).ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"data_folder = 'data/shapes'\n",
5959
"# Our source images are 128x128, but the base model we're going to use was trained with 224x224 images\n",
6060
"pretrained_size = (224,224)\n",
61-
"batch_size = 30\n",
61+
"batch_size = 15\n",
6262
"\n",
6363
"print(\"Getting Data...\")\n",
6464
"datagen = ImageDataGenerator(rescale=1./255, # normalize pixel values\n",
@@ -148,7 +148,7 @@
148148
},
149149
"cell_type": "code",
150150
"source": [
151-
"# Train the model over 5 epochs using 30-image batches and using the validation holdout dataset for validation\n",
151+
"# Train the model over 5 epochs\n",
152152
"num_epochs = 5\n",
153153
"history = model.fit(\n",
154154
" train_generator,\n",
@@ -312,8 +312,8 @@
312312
],
313313
"metadata": {
314314
"kernelspec": {
315-
"name": "python_defaultSpec_1597791820390",
316-
"display_name": "Python 3.7.6 64-bit ('base': conda)",
315+
"name": "python3",
316+
"display_name": "Python 3",
317317
"language": "python"
318318
},
319319
"language_info": {

0 commit comments

Comments
 (0)