text_plain_output_5.png text_html_output_4.png text_plain_output_4.png text_html_output_2.png text_html_output_5.png text_plain_output_6.png text_plain_output_3.png text_html_output_1.png text_plain_output_2.png text_plain_output_1.png text_html_output_3.png
from pathlib import Path

path = Path().cwd() / 'dogs'

dog = DataBlock(blocks=(ImageBlock, CategoryBlock), get_items=get_image_files, splitter=RandomSplitter(valid_pct=0.2, seed=42), get_y=parent_label, item_tfms=Resize(128))

dls = dog.dataloaders(path)

dog = dog.new(item_tfms=RandomResizedCrop(128, min_scale=0.5), batch_tfms=aug_transforms())
dls = dog.dataloaders(path)
dls.train.show_batch(max_n=8, nrows=2)