is_bird_or_is_not_bird To export the model as .pkl file, add the following line of code learn.export('model.pkl') after fine tuning the pre-trained model (resnet-18)