Skip to content

Latest commit

 

History

History

llava-jp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LLaVA-JP

Input

Output

猫はノートパソコンの横に座っています。

Requirements

This model requires additional module.

pip install transformers

Usage

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

Reference

Framework

Pytorch

Model Format

ONNX opset=17

Netron

llava-jp-1.3b-v1.1.onnx.prototxt
encode_images.onnx.prototxt