Instead of the final classification layer (which would say "dog" or "running"), you extract the output from the (often called the "bottleneck" or "pooling layer").
Convert the images into numerical arrays (tensors). 4. Extract the Global Feature Vector
Use ResNet-50 or ViT (Vision Transformer) pre-trained on ImageNet.