diff --git a/examples/minicpmv/minicpmv.cpp b/examples/minicpmv/minicpmv.cpp index 5d2644dbf..573bba2de 100644 --- a/examples/minicpmv/minicpmv.cpp +++ b/examples/minicpmv/minicpmv.cpp @@ -210,7 +210,7 @@ static bool bicubic_resize(const clip_image_u8 &img, clip_image_u8 &dst, int tar } } } - + return true; } diff --git a/examples/minicpmv/minicpmv_wrapper.cpp b/examples/minicpmv/minicpmv_wrapper.cpp index 0e8c5eb83..544bf5519 100644 --- a/examples/minicpmv/minicpmv_wrapper.cpp +++ b/examples/minicpmv/minicpmv_wrapper.cpp @@ -108,7 +108,7 @@ void process_image(struct minicpmv_context * ctx_llava, std::vectorctx_llama, (system_prompt+"").c_str(), params->n_batch, &n_past, true); + eval_string(ctx_llava->ctx_llama, (system_prompt+"").c_str(), params->n_batch, &n_past, false); llava_eval_image_embed(ctx_llava->ctx_llama, image_embed_slices[0][0], params->n_batch, &n_past); eval_string(ctx_llava->ctx_llama, std::string("").c_str(), params->n_batch, &n_past, false); if (image_embed_slices.size() > 1) { diff --git a/examples/minicpmv/requirements.txt b/examples/minicpmv/requirements.txt index f80f727a7..43dbc7e19 100644 --- a/examples/minicpmv/requirements.txt +++ b/examples/minicpmv/requirements.txt @@ -1,3 +1,4 @@ -r ../../requirements/requirements-convert.txt pillow~=10.2.0 torch~=2.1.1 +torchvision==0.16.2 \ No newline at end of file