From 9d6f198bfed4ce6b635fb3579770f6bdc8a0f056 Mon Sep 17 00:00:00 2001 From: cpumaxx <163466046+cpumaxx@users.noreply.github.com> Date: Sun, 28 Apr 2024 15:44:32 -0700 Subject: [PATCH] Update llava-cli.cpp fix image param and add additional help info text --- examples/llava/llava-cli.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/llava/llava-cli.cpp b/examples/llava/llava-cli.cpp index 0a1f9ada9..5dc0ea567 100644 --- a/examples/llava/llava-cli.cpp +++ b/examples/llava/llava-cli.cpp @@ -112,7 +112,7 @@ struct llava_context { }; static void show_additional_info(int /*argc*/, char ** argv) { - fprintf(stderr, "\n example usage: %s -m --mmproj --image [--temp 0.1] [-p \"describe the image in detail.\"]\n", argv[0]); + fprintf(stderr, "\n example usage: %s -m --mmproj --image --image [--temp 0.1] [-p \"describe the image in detail.\"]\n", argv[0]); fprintf(stderr, " note: a lower temperature value like 0.1 is recommended for better quality.\n"); } @@ -281,7 +281,7 @@ int main(int argc, char ** argv) { return 1; } - for (auto & image : image) { + for (auto & image : params.image) { auto ctx_llava = llava_init_context(¶ms, model);