update headers

This commit is contained in:
Daniel Bourke committed 2022-04-25 10:15:24 +10:00
1 parent e69ac63d75
commit e2492cf87d
1 file changed
+17 -4
+17 -4
View File
@@ -1148,7 +1148,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's write a helper function capable of creating these given a directory path.\n",
"### 5.1 Creating a helper function to get class names\n",
"\n",
"Let's write a helper function capable of creating a list of class names and a dictionary of class names and their indexes given a directory path.\n",
"\n",
"To do so, we'll:\n",
"1. Get the class names using `os.scandir()` to traverse a target directory (ideally the directory is in standard image classification format).\n",
@@ -1258,10 +1260,21 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Woohoo!\n",
"Woohoo! Looking good!"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 5.2 Create a custom `Dataset` to replicate `ImageFolder`\n",
"\n",
"Now we're ready to build our own custom `Dataset`.\n",
"\n",
"We'll build one to replicate the functionality of `torchvision.datasets.ImageFolder()`. \n",
"\n",
"This will be good practice, plus, it'll reveal a few of the required steps to make your own custom `Dataset`.\n",
"\n",
"It'll be a fair bit of a code... but nothing we can't handle!\n",
"\n",
"Let's break it down:\n",
@@ -1511,7 +1524,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### 5.1 Create a function to display random images\n",
"### 5.3 Create a function to display random images\n",
"\n",
"You know what time it is!\n",
"\n",
@@ -1664,7 +1677,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### 5.2 Turn custom loaded images into `DataLoader`'s \n",
"### 5.4 Turn custom loaded images into `DataLoader`'s \n",
"\n",
"We've got a way to turn our raw images into `Dataset`'s (features mapped to labels or `X`'s mapped to `y`'s) through our `ImageFolderCustom` class.\n",
"\n",