I constructed the dataset with a datablock and then tried to view the data in it, but got an error
data=(ImageList.from_folder(data_dir/‘train’)
.split_by_rand_pct()
.label_from_func(get_label)
.transform(tfms,size=299)
.databunch()
.normalize(imagenet_stats))data.show_batch(rows=3,figsize=(9,7))
This is the error: