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

BLIP2 captioning broken #2992

Open
iqddd opened this issue Nov 29, 2024 · 0 comments
Open

BLIP2 captioning broken #2992

iqddd opened this issue Nov 29, 2024 · 0 comments

Comments

@iqddd
Copy link

iqddd commented Nov 29, 2024

Either need to update transformers package to latest (or pre-latest) version or specify revision in .from_pretrained calls.

processor = Blip2Processor.from_pretrained("Salesforce/blip2-opt-2.7b", revision="51572668da0eb669e01a189dc22abe6088589a24")

# Initialize the BLIP2 model
model = Blip2ForConditionalGeneration.from_pretrained(
    "Salesforce/blip2-opt-2.7b", torch_dtype=torch.float16, revision="51572668da0eb669e01a189dc22abe6088589a24"
)
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