Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract Image Features #28

Open
bryanwong17 opened this issue Sep 24, 2024 · 0 comments
Open

Extract Image Features #28

bryanwong17 opened this issue Sep 24, 2024 · 0 comments

Comments

@bryanwong17
Copy link

bryanwong17 commented Sep 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant