Hi and welcome!
The problem here is that any learner
expects a function that returns a model, not the model itself. See here, someone had the same problem.
Unfortunately, I don’t know how you can then load your pretrained weights into this model, maybe somebody else can help