I’m not familiar with the fastai implementation, so could you explain the code a bit?
E.g. what is .transform() doing? Is it normalizing the data automatically?
I assume you are using the same model architecture.
Do you have any chance to time the fastai training loop?
It’s currently hidden in .fit(), so I’m not sure, what kind of training loop is used.
Do you get the same statistics (e.g. correct, precision, f1) in both approaches?
The timing difference is huge, so it would be really interesting, what fastai uses.