Hello,
I’m experimenting with the techniques from chapter 7. I trained a standard CNN learner with the loss function for label smoothing:
learn = cnn_learner(dls, resnet34, metrics=accuracy, loss_func=LabelSmoothingCrossEntropyFlat())
Training runs fine, but when I try to export the learner, the following error occurs:
PicklingError: Can't pickle typing.Callable[..., typing.Any]: it's not the same object as typing.Callable
Exporting the model with the default loss function works fine.
Running fastai 2.0.16 in Colab.
Thank you for any help!