Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

LLaVA

Input

Output

When visiting this location, which features a pier extending over a large body of water, you should be cautious about several things. First, be mindful of the weather conditions, as the pier may be affected by strong winds or storms, which could make it unsafe to walk on. Second, be aware of the water depth and currents, as they can change rapidly and pose a risk to swimmers or those who venture too close to the edge. Additionally, be cautious of the presence of any wildlife in the area, as they may pose a potential danger or distraction. Finally, be mindful of the pier's structural integrity, as it may be subject to wear and tear over time, and it is essential to ensure that it is safe for use.

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.py

If you want to specify the input image, put the image path after the --input option.
You can use --savepath option to change the name of the output file to save.

$ python3 llava.py --input IMAGE_PATH --savepath SAVE_IMAGE_PATH

If you want to specify the input prompt, specify it after the --prompt option.

$ python3 llava.py --prompt PROMPT

Reference

Framework

Pytorch

Model Format

ONNX opset=14

Netron

llava-v1.5-7b.onnx.prototxt
encode_images.onnx.prototxt
embed_tokens.onnx.prototxt