Skip to content

Commit 65f7455

Browse files
committed
Modify 2 notes
1 parent f3d400d commit 65f7455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/llava/llava.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static bool encode_image_with_clip(clip_ctx * ctx_clip, int n_threads, const cli
256256
load_image_size->width = img_res_v.data[i].nx;
257257
load_image_size->height = img_res_v.data[i].ny;
258258
clip_add_load_image_size(ctx_clip, load_image_size);
259-
const bool encoded = clip_image_encode(ctx_clip, n_threads, only_v2_5_reshape_by_patch(&img_res_v.data[i], patch_size), image_embd_v[i]); // image data is in 3x336x336 format and will be converted to 336x336x3 inside
259+
const bool encoded = clip_image_encode(ctx_clip, n_threads, only_v2_5_reshape_by_patch(&img_res_v.data[i], patch_size), image_embd_v[i]);
260260
if (!encoded) {
261261
LOG_TEE("Unable to encode image - spatial_unpad - subimage %d of %d\n", (int) i+1, (int) img_res_v.size);
262262
return false;
@@ -362,7 +362,7 @@ bool llava_validate_embed_size(const llama_context * ctx_llama, const clip_ctx *
362362
}
363363

364364
bool llava_image_embed_make_with_clip_img(clip_ctx * ctx_clip, int n_threads, const clip_image_u8 * img, float ** image_embd_out, int * n_img_pos_out) {
365-
int num_max_patches = 6; //
365+
int num_max_patches = 6;
366366
if (clip_is_minicpmv(ctx_clip)) {
367367
num_max_patches = 10;
368368
}

0 commit comments

Comments
 (0)