Hi I’m new to the course. Just starting Fastai. I am doing the dog breed exercice. When I define the path, can I use an image folder locally instead of downloading from url? If so, how do I pass path it to ImageDataLaoders? I pass it as a string?
thanks
David
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)