shendusuipian icon indicating copy to clipboard operation
shendusuipian copied to clipboard

Different ways to put your data into DataBunch

Open EmbraceLife opened this issue 5 years ago • 0 comments

homework for week 1

91:00-91:35

Different ways to put your data into DataBunch

91:35-95:10 Different ways to put your data into DataBunch How to use MNIST sample dataset? * path = untar_data(URLs.MNIST_SAMPLE); path How to create DataBunch while labels on folder names? - data = ImageDataBunch.from_folder(path, ds_tfms=tfms, size=26) How to check the images and labels? How to read from CSV? - df = pd.read_csv(path/'labels.csv') How to create DataBunch while labels in CSV file? - data = ImageDataBunch.from_csv(path, ds_tfms=tfms, size=28) How to create DataBunch while labels in dataframe? - data = ImageDataBunch.from_df(path, df, ds_tfms=tfms, size=24) How to create DataBunch while labels in filename? - data = ImageDataBunch.from_name_re(path, fn_paths, pat=pat, ds_tfms=tfms, size=24) How to create DataBunch while labels in filename using function? - data = ImageDataBunch.from_name_func(path, fn_paths, ds_tfms=tfms, size=24, label_func = lambda x: '3' if '/3/' in str(x) else '7') How to create DataBunch while labels in a list? - labels = [('3' if '/3/' in str(x) else '7') for x in fn_paths] - data = ImageDataBunch.from_lists(path, fn_paths, labels=labels, ds_tfms=tfms, size=24) 目录 Lesson 1 知识点分解 #63

EmbraceLife avatar Mar 06 '19 01:03 EmbraceLife