Where all_data is an ImageDataLoaders, mcc is an instance of MatthewsCorrCoef() and auroc an instance of RocAucBinary() (just some metrics). When i use the learn.fine_tune() method, i pass the callback SaveModelCallback() (and some others) in the following way:
When i do so, the training goes normally, but i keep getting this warning after every epoch:
C:\Users\chris\anaconda3\envs\fastai_env\lib\site-packages\fastai\learner.py:54: UserWarning: Saved filed doesnât contain an optimizer state.
elif with_opt: warn(âSaved filed doesnât contain an optimizer state.â)
I know that it is the SaveModelCallback() since the warning disappears once i remove it.
Since itâs just a warning, iâm not exactly sure if iâm doing something wrong here. Can anyone help me? Thanks!!