I have a lots of (image, text) pairs and would like to learn a feature extractor (or maybe a FeatureExtractorFunction) for a combined embedding.
It seems that when given a list of these multimodal pairs FeatureExtract
doesn’t seem to do anything smart here in terms of trying to learn a joint semantic embedding:
FeatureExtract@Table[{RandomImage[1,{10,10},ColorSpace->”RGB"], ResourceFunction["RandomString"][20]}, 3000];
Instead of concatenating the BERT features of the text with the Resnet features of the image, I wanted to add an attention layer with transformers but this is easier for me in pytorch.
Perhaps I’m missing the obvious thing here...