text_html_output_1.png
path = Path('../input/normal-vs-camouflage-clothes/8k_normal_vs_camouflage_clothes_images')
path.ls()

bs = 64

data = ImageDataBunch.from_folder(path, valid_pct=0.2, ds_tfms=get_transforms(), size=bs).normalize(imagenet_stats)

arch = resnet50
learn = cnn_learner(data, arch, metrics=[error_rate, accuracy], model_dir='/kaggle/working').to_fp16()
learn.model_dir = '/kaggle/working'

learn.lr_find()

lr = learn.recorder.min_grad_lr
lr

learn.fit_one_cycle(5, lr)

learn.save('stage-1-50')

learn.load('stage-1-50')

learn.unfreeze()

learn.lr_find()

lr1 = learn.recorder.min_grad_lr
lr1