commit
118ff351fe
@ -1526,7 +1526,7 @@
|
||||
" label_func=is_cat, item_tfms=Resize(224))\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"The fourth line tells fastai what kind of dataset we have, and how it is structured. There are various different classes for different kinds of deep learning dataset and problem--here we're using `ImageDataLoaders`. The first part of the class name will generally be the type of data you have, such as image, or text. The second part will generally be the type of problem you are solving, such as classification, or regression.\n",
|
||||
"The fourth line tells fastai what kind of dataset we have, and how it is structured. There are various different classes for different kinds of deep learning datasets and problems--here we're using `ImageDataLoaders`. The first part of the class name will generally be the type of data you have, such as image, or text. The second part will generally be the type of problem you are solving, such as classification, or regression.\n",
|
||||
"\n",
|
||||
"The other important piece of information that we have to tell fastai is how to get the labels from the dataset. Computer vision datasets are normally structured in such a way that the label for an image is part of the file name, or path, most commonly the parent folder name. Fastai comes with a number of standardized labelling methods, and ways to write your own. Here we define a function on the third line: `is_cat` which labels cats based on a filename rule provided by the dataset creators.\n",
|
||||
"\n",
|
||||
|
Loading…
Reference in New Issue
Block a user