25:40-27:53
How to get the labels of dataset
How to observe the pattern of the label from filename?
How to create DataBunch from using regression on filenames?
data = ImageDataBunch.from_name_re(path_img, fnames, pat, ds_tfms, size)
such factory method can easily bundle images and labels into training, validation and testing sets
How to create the regular expression for the filename in this case?
How to get the labels of dataset?
25:40-27:53 How to get the labels of dataset How to observe the pattern of the label from filename? How to create DataBunch from using regression on filenames?
data = ImageDataBunch.from_name_re(path_img, fnames, pat, ds_tfms, size)
pat = r'/([^/]+)_/d+.jpg$'
ImageDataBunch.from_name_re
?help()
or?
to read all args and their types 目录 Lesson 1 知识点分解 #63