(Image from https://github.com/salesforce/LAVIS/blob/main/docs/_static/merlion.png)
- Estimating Caption
### Caption ###
singapore merlion fountain
This model requires additional module.
pip3 install transformers
Automatically downloads the onnx and prototxt files on the first run. It is necessary to be connected to the Internet while downloading.
For the sample image,
$ python3 blip2.py
If you want to specify the input image, put the image path after the --input
option.
$ python3 blip2.py --input IMAGE_PATH
Pytorch
ONNX opset=11