DEV Community

Discussion on: Image classifier

Collapse
 
pontakornth profile image
Pontakorn Paesaeng

You forget some code block.

Collapse
 
pulkitsinghdev profile image
Pulkit Singh

don't think so

Collapse
 
pontakornth profile image
Pontakorn Paesaeng
animals = DataBlock(
blocks=(ImageBlock, CategoryBlock), # x,y
get_items=get_image_files,
splitter=RandomSplitter(valid_pct=0.2, seed=42),
get_y=parent_label,
item_tfms=RandomResizedCrop(224, min_scale=0.5),
batch_tfms=aug_transforms())
Enter fullscreen mode Exit fullscreen mode

This text is a code so if it is in the code block it would be easier to read.