Duplicate Widget

(Yifan Xu) #24

Hey my question is in Cleaned.csv everything is included rather than images of each category in each separate file. In this case, how can we recreate ImageDataBunch for this cleaned.csv file?

0 Likes

#25

Kaggle now seems to be using latest version and so from_similars works fine. Thanks!

1 Like

#26

You can create the ImageDataBunch from the csv, like so (assuming your csv is in folder named β€˜data’):
data = ImageDataBunch.from_csv('data',csv_labels='cleaned.csv',label_col=1,valid_pct=0.2,ds_tfms=get_transforms(), size=224, num_workers=0).normalize(imagenet_stats)

3 Likes