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

Why blip2_feature_extraction does not align with demo #756

Open
Roberyan opened this issue Oct 14, 2024 · 0 comments
Open

Why blip2_feature_extraction does not align with demo #756

Roberyan opened this issue Oct 14, 2024 · 0 comments

Comments

@Roberyan
Copy link

image

I am using blip2's feature extraction, however for the feature_text, the text_embedding shape is [1,6,768] instead of [1,12,768], I am confused if this is the case or I did some part wrong?

I am using salesforce-lavis ==1.0.2 , and the model related part is

model, vis_processors, txt_processors = load_model_and_preprocess(
        name="blip2_feature_extractor", 
        model_type="pretrain_vitL", 
        is_eval=True, device=device)
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