CLIP Feature Extractor

Overview

This page includes information about how to use CLIPFeatureExtractorTF with tensorflow-ops. This feature extractors works in sync with Dataset and so is useful for on the fly preprocessing.

>>> from tf_transformers.models import  CLIPFeatureExtractorTF
>>> image_path_list = # List fo image paths
>>> CLIP_feature_extractor_tf = CLIPFeatureExtractorTF(img_height=224, img_width=224)
>>> outputs = CLIP_feature_extractor_tf({'image': tf.constant(image_path_list)})

CLIPFeatureExtractorTF