Views
No views yet
<MORE_DETAILED_CAPTION>指令, 总时间需要~4秒pip install transformers onnxruntime pillow numpy<2 rknn-toolkit-lite21cd onnx
2python ./run.py ./test.jpg "<MORE_DETAILED_CAPTION>"run.py最上方的import来切换使用ONNX或RKNN推理。1cd onnx
2python convert.py allvision_size, vision_tokens, prompt_tokens来修改输入的shape.Buffer overflow!然后转换失败, 所以目前是使用512x512的输入, 推理质量会下降<MORE_DETAILED_CAPTION> instruction takes ~4 seconds in total.pip install transformers onnxruntime pillow numpy<2 rknn-toolkit-lite21cd onnx
2python ./run.py ./test.jpg "<MORE_DETAILED_CAPTION>"run.py to switch between ONNX and RKNN inference.1cd onnx
2python convert.py allvision_size, vision_tokens, and prompt_tokens in convert.py to change the input shape.Buffer overflow! error and fail the conversion. Therefore, a 512x512 input was used, which degraded inference quality.