mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-12 18:09:42 +00:00
vision can set max res (+1 squashed commits)
Squashed commits: [938fc655] vision can set max res
This commit is contained in:
parent
2f69432774
commit
70f1d8d746
6 changed files with 25 additions and 12 deletions
|
@ -473,7 +473,7 @@ bool llava_eval_image_embed(llama_context * ctx_llama, const struct llava_image_
|
|||
|
||||
struct llava_image_embed * llava_image_embed_make_with_bytes(struct clip_ctx * ctx_clip, int n_threads, const unsigned char * image_bytes, int image_bytes_length) {
|
||||
clip_image_u8 * img = clip_image_u8_init();
|
||||
if (!clip_image_load_from_bytes(image_bytes, image_bytes_length, img)) {
|
||||
if (!clip_image_load_from_bytes(image_bytes, image_bytes_length, img, 2048)) {
|
||||
clip_image_u8_free(img);
|
||||
LOG_ERR("%s: can't load image from bytes, is it a valid image?", __func__);
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue