I get IsADirectoryError: [Errno 21] Is a directory: '.'.
(Note: I’m using export / load_learner because when I just tried using learn.save and learn.load, the lr_find graph would not reflect the earlier state of the model, even after I’d used learn.load – So I assumed something was going wrong and decided to explicitly export the model to file and re-load it).
Does anybody know why this might be happening?
I’m fully prepared for the answer to be: Because I’m not doing it properly / have made an obvious mistake
There shouldn’t ever be I don’t think during training? You certainly don’t need to run code top-down in a jupyter environment. If you want to go back to previous training while you’re working on finding a good learning rate just simply save your learner, then fit, and if it’s not good enough load it back in via learn.load() and fit again (I think that’s what you’re asking?)
I mean that after unfreezing and running, and deciding that I wanted to try some different settings, I re-loaded the model from before unfreezing, and ran lr_find() again, but the graph was different (implying that the model had changed and was not the same unfrozen model as before).
hey, I just trained an image classification model in colab and exported the model as a .pkl file in my GDrive. I then downloaded the pickle file locally to my system. And now when I’m using the load_learner, I get an error - ‘PosixPath’ object has no attribute ‘tell’. Using the pickle.load function also gives some error.