I am encountering an error when trying to use lr_find() directly from lesson3-planet. It tells me that I have run out of memory while there is still memory available.
. I have tried restarting the kernel. tried to use torch.cuda.empty_cache() and gc.collect() to clear the GPU, but I’m still running into problems. I’m getting the following when running the lesson3-planet notebook directly:
For the leson3-planet notebook, where would I specify the batch size? Would it be when I instantiate cnn_learner? I’m not exactly sure where to put it and I don’t see it specified in any of the previous lines of code.
Thanks! This worked. It was a little disguised because the notebook specifically says we then need to use ImageList (and not ImageDataBunch), but they use databunch() to which I fed bs=4 as an argument.