-
Image
(Image from https://huggingface.co/rinna/bilingual-gpt-neox-4b-minigpt4/blob/main/sample.jpg)
-
Prompt
猫の隣には何がありますか?
猫はノートパソコンの横に座っています。
This model requires additional module.
pip 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 llava-jp.py
If you want to specify the input image, put the image path after the --input
option.
$ python3 llava-jp.py --input IMAGE_PATH --prompt "猫の隣には何がありますか?"
If you want to specify the prompt, put the prompt after the --prompt
option.
$ python3 llava-jp.py --prompt PROMPT
Pytorch
ONNX opset=17
llava-jp-1.3b-v1.1.onnx.prototxt
encode_images.onnx.prototxt