%md #### Prepare your model
Download a model file for featurization, and truncate the last layer(s). This notebook uses ResNet50.
Spark workers need to access the model and its weights.
* For moderately sized models (< 1GB in size), a good practice is to download the model to the Spark driver and then broadcast the weights to the workers. This notebook uses this approach.
* For large models (> 1GB), it is best to load the model weights from distributed storage to workers directly.
Featurization using a pretrained model for transfer learning
This notebook demonstrates how to take a pre-trained deep learning model and use it to compute features for downstream models. This is sometimes called transfer learning since it allows transfering knowledge (i.e., the feature encoding) from the pre-trained model to a new model.
In this notebook:
This notebook does not take the final step of using those features to train a new model. For examples of training a simple model such as logistic regression, refer to the "Machine Learning" examples in the Databricks documentation.
Requirements:
Last refresh: Never