Currently working on Datasette and associated projects. Read my blog or follow @[email protected]
on Mastodon.
simonw / blip-caption Goto Github PK
View Code? Open in Web Editor NEWGenerate captions for images with Salesforce BLIP
Generate captions for images with Salesforce BLIP
Currently working on Datasette and associated projects. Read my blog or follow @[email protected]
on Mastodon.
Really simple:
blip-caption *.jpg
Outputs captions for those images. Use --json
to get back JSON instead.
Defaults to https://huggingface.co/Salesforce/blip-image-captioning-base - add --large
to use https://huggingface.co/Salesforce/blip-image-captioning-large instead.
hi! I get the following error when I run blip:
$ blip-caption cover.jpg
Traceback (most recent call last):
File "/home/user/.local/bin/blip-caption", line 8, in <module>
sys.exit(cli())
File "/home/user/.local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/home/user/.local/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/user/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/user/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/user/.local/lib/python3.10/site-packages/blip_caption.py", line 17, in cli
captioner = pipeline(
File "/home/user/.local/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 645, in pipeline
config = AutoConfig.from_pretrained(model, _from_pipeline=task, **hub_kwargs, **model_kwargs)
File "/home/user/.local/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 829, in from_pretrained
config_class = CONFIG_MAPPING[config_dict["model_type"]]
File "/home/user/.local/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 536, in __getitem__
raise KeyError(key)
KeyError: 'blip'
blip-caption==0.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.