What is data.val_ds equivalent in fastai v1.0?


I am trying to use lesson 1 with fastai v1.0 as I want to use Kaggle’s free GPU. I am stuck with below line where, lesson 1 uses val_ds

imgs = [load_img_id(data.val_ds,x) for x in idxs]

I could not find any data.val_ds in fastai v1.0. I build the data as below.

path = untar_data(URLs.DOGS)
data = ImageDataBunch.from_folder(path, ds_tfms=get_transforms(), size=112, num_workers=3)

So what is the equivalent variable in 1.0? I searched in docs but could not find.

Check these docs on github: https://github.com/fastai/fastai/blob/master/docs_src/data_block.ipynb
This directory has lots of useful notebooks.

1 Like