You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from fastai.vision.all import *
path = untar_data(URLs.PETS)/'images'
dls = ImageDataLoaders.from_name_func(
path, get_image_files(path), valid_pct=0.2,
label_func=lambda x: x[0].isupper(), item_tfms=Resize(224))
# if a string is passed into the model argument, it will now use timm (if it is installed)
learn = vision_learner(dls, 'vit_tiny_patch16_224', metrics=error_rate)
learn.fine_tune(1)
This code snippet was very useful for me, but as a newbie to fastai it then took me a long time to find the DataLoader for a custom dataset.
The text was updated successfully, but these errors were encountered:
This code snippet was very useful for me, but as a newbie to fastai it then took me a long time to find the DataLoader for a custom dataset.
The text was updated successfully, but these errors were encountered: