This video explains the process of using pretrained weights (VGG16) as feature extractors for traditional machine learning classifiers (Random Forest).
Code generated in the video can be downloaded from here:
https://github.com/bnsreenu/python_fo...
Keras pretrained models: https://keras.io/api/applications/