While following the Jupyter notebooks, on the pet_breeds chapter
I hit upon an error when these lines are run
learn = cnn_learner(dls, resnet34, metrics=error_rate) lr_min,lr_steep = learn.lr_find()
The error says:
not enough values to unpack (expected 2, got 1). Also, I get this graph with one ‘marker’ which I suppose is either one of the values of
When I run
learn.lr_find() only, i.e. do not capture the output in
lr_min, lr_steep; it runs well but then I do not get the min and steep learning rates.
I read through what
lr_find does and it is clear that it returns a tuple. Its docstring says
Launch a mock training to find a good learning rate and return suggestions based on
suggest_funcsas a named tuple
I had duplicated the original notebook, and when I hit this error, I ran the original notebook, with the same results. I update the notebooks as well, but no change!
Wherever I have searched for this online, any sort of error hasn’t popped up. The only relevant thing I found is that
lr_find returns different results after every run, which is perfectly fine.