Suppose I’m using a saved model for prediction. What is the correct way to create the learn object ? How to initialize it ?
tfmModel = tfms_from_model(resnet34, imSize, aug_tfms = transforms_side_on, max_zoom = 1.1) data = ImageClassifierData.from_paths(PATH, tfms = tfmModel, bs = batchSize) learn = ConvLearner.pretrained(resnet34, data)
I am doing it like above, but if I have to take my saved model to someplace else and make predictions out of it, do I need to take the training data with it too ? as I understand from
What I am trying to do is, export the model I built in a format which I will be able to use somewhere else. Like we use the ResNet34 and similar ImageNet models to train our network.