image_output_1.png
path = '/kaggle/input/cell-images-for-detecting-malaria/cell_images/'

fields = DataBlock(blocks=(ImageBlock, CategoryBlock), get_items=get_image_files, get_y=parent_label, splitter=RandomSplitter(valid_pct=0.2, seed=42), item_tfms=RandomResizedCrop(114, min_scale=0.5), batch_tfms=aug_transforms())

dls = fields.dataloaders(path)

dls.vocab

learn = cnn_learner(dls, resnet34, metrics=[error_rate, accuracy])

lrn_min, lrn_steep = learn.lr_find()

learn.fine_tune(1)