Skip to content

Extract Image Features #28

Description

@bryanwong17

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions