Skip to content

Commit

Permalink
Update llava-cli.cpp
Browse files Browse the repository at this point in the history
fix image param and add additional help info text
  • Loading branch information
cpumaxx authored Apr 28, 2024
1 parent 5e906de commit 9d6f198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/llava/llava-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ struct llava_context {
};

static void show_additional_info(int /*argc*/, char ** argv) {
fprintf(stderr, "\n example usage: %s -m <llava-v1.5-7b/ggml-model-q5_k.gguf> --mmproj <llava-v1.5-7b/mmproj-model-f16.gguf> --image <path/to/an/image.jpg> [--temp 0.1] [-p \"describe the image in detail.\"]\n", argv[0]);
fprintf(stderr, "\n example usage: %s -m <llava-v1.5-7b/ggml-model-q5_k.gguf> --mmproj <llava-v1.5-7b/mmproj-model-f16.gguf> --image <path/to/an/image.jpg> --image <path/to/another/image.jpg> [--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");
}

Expand Down Expand Up @@ -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(&params, model);

Expand Down

0 comments on commit 9d6f198

Please sign in to comment.