I’m working on doing Pneumonia detection using Chest X-rays Image data found in Kaggle. But I’m having trouble finding the best learning rate when I execute the line
To give you some context about my data, here is how my directory is organized
The weird thing is that when I try to find the best lr when using a fastai available dataset like the PETS one, it works perfectly fine and finds the best lr.
And by the way, I’m using fastai version 2.7.12 which is the latest version
In Kaggle kernels, the “/kaggle/input” directory is read-only, so you need to use “/kaggle/working” directory which is read-write.
It can be done if you give the “model_dir” parameter for your Learner (the default is model_dir=‘models’)
Example: vision_learner(dls, resnet34, model_dir=‘/kaggle/working/models’)
You can see vision_learner’s parameters here (but it works with other learners too):