Get reproducable image features
#32
by
dariendalw
- opened
Hello, I am new at using ML models and am experiencing an issue with the BLIP model.
I want to use a pretrained BLIP model for image feature extraction. My goal is to see how the pretrained version works on my particular data. I do this using the get_image_features function. However when extracting feature vectors from images I get different feature vectors for the same image each time I run the feature extraction. How do I make the feature extraction reproducable? Also I get a warning saying that some weights from the Blip Model are not initialized, eventhough I am using the pretrained version ... I assume this is the source of my issue... How do I initialize the pretrained weights?
Thanks for any help!