Zero Shot Learning, Computer Vision, NLP, Pytorch, Machine Learning.
model.encode_image(image) image_features /= image_features.norm(dim=-1, keepdim=True) Finally, the dot product of the image and text features is computed, followed by the softmax function to obtain class probabilities. text_probs = (100.0 * image_features @