Error in the first line of code


I am getting error while running the code given in the tutorial .
from 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)

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

Try restarting your kernel and rerun all the code together

1 Like