Hi, I would like to extract image features using PLIP
from transformers import CLIPModel
model = CLIPModel.from_pretrained('vinid/plip')
for batch in dataloader:
with torch.no_grad():
batch = batch.to(device)
embeds = ...
Could you please let me know how to write the forward code to extract image features using PLIP? Thank you
Hi, I would like to extract image features using PLIP
Could you please let me know how to write the forward code to extract image features using PLIP? Thank you