Error in the first line of code

Hi

I am getting error while running the code given in the tutorial .
from fastai.vision.all import *
path = untar_data(URLs.PETS)/‘images’

def is_cat(x): return x[0].isupper()
dls = ImageDataLoaders.from_name_func(
path, get_image_files(path), valid_pct=0.2, seed=42,
label_func=is_cat, item_tfms=Resize(224))

learn = cnn_learner(dls, resnet34, metrics=error_rate)
learn.fine_tune(1)

error :learn.fine_tune(1) and the error is : anaconda3\lib\site-packages\torch\utils\data\dataloader.py in _try_get_data(self, timeout)**

@Sandeeppk
Try restarting your kernel and rerun all the code together

1 Like