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

Non parametric grouping #33

Open
roysubhankar opened this issue Jun 3, 2022 · 1 comment
Open

Non parametric grouping #33

roysubhankar opened this issue Jun 3, 2022 · 1 comment

Comments

@roysubhankar
Copy link

Hi,

Can you please provide more details as how you do the non-parametric grouping on CLIP's features (obtained from ViT encoder)?

@xvjiarui
Copy link
Contributor

xvjiarui commented Jun 6, 2022

Hi @roysubhankar

The steps are as followed:

  1. Extract feature map from CLIP image encoder, reshape it to [C, H/16, W/16].
  2. Perform K-Means(or other clustering algo.) on the feature map with k=8
  3. Assign each pixel to the clustering center according to the distance.

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

2 participants