Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d9e060f

Browse files
committedMay 8, 2019
minor copy edit
1 parent 1c2ff21 commit d9e060f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎transfer-learning/Transfer_Learning_Exercise.ipynb

+2-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"source": [
7878
"## Load and Transform our Data\n",
7979
"\n",
80-
"We'll be using PyTorch's [ImageFolder](https://pytorch.org/docs/stable/torchvision/datasets.html#imagefolder) class which makes is very easy to load data from a directory. For example, the training images are all stored in a directory path that looks like this:\n",
80+
"We'll be using PyTorch's [ImageFolder](https://pytorch.org/docs/stable/torchvision/datasets.html#imagefolder) class which makes it very easy to load data from a directory. For example, the training images are all stored in a directory path that looks like this:\n",
8181
"```\n",
8282
"root/class_1/xxx.png\n",
8383
"root/class_1/xxy.png\n",
@@ -269,8 +269,7 @@
269269
},
270270
"outputs": [],
271271
"source": [
272-
"import torch.nn as nn",
273-
"## TODO: add a last linear layer that maps n_inputs -> 5 flower classes\n",
272+
"import torch.nn as nn## TODO: add a last linear layer that maps n_inputs -> 5 flower classes\n",
274273
"## new layers automatically have requires_grad = True\n",
275274
"\n",
276275
"\n",

‎transfer-learning/Transfer_Learning_Solution.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"source": [
8484
"## Load and Transform our Data\n",
8585
"\n",
86-
"We'll be using PyTorch's [ImageFolder](https://pytorch.org/docs/stable/torchvision/datasets.html#imagefolder) class which makes is very easy to load data from a directory. For example, the training images are all stored in a directory path that looks like this:\n",
86+
"We'll be using PyTorch's [ImageFolder](https://pytorch.org/docs/stable/torchvision/datasets.html#imagefolder) class which makes it very easy to load data from a directory. For example, the training images are all stored in a directory path that looks like this:\n",
8787
"```\n",
8888
"root/class_1/xxx.png\n",
8989
"root/class_1/xxy.png\n",

0 commit comments

Comments
 (0)
Please sign in to comment.