summaryrefslogtreecommitdiff
path: root/examples/llava
diff options
context:
space:
mode:
Diffstat (limited to 'examples/llava')
-rw-r--r--examples/llava/CMakeLists.txt2
-rw-r--r--examples/llava/clip.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/llava/CMakeLists.txt b/examples/llava/CMakeLists.txt
index d02e6ab4..2d7979ec 100644
--- a/examples/llava/CMakeLists.txt
+++ b/examples/llava/CMakeLists.txt
@@ -1,7 +1,7 @@
set(TARGET clip)
add_library(${TARGET} clip.cpp clip.h)
install(TARGETS ${TARGET} LIBRARY)
-target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
+target_link_libraries(${TARGET} PRIVATE common ggml ${CMAKE_THREAD_LIBS_INIT})
target_compile_features(${TARGET} PRIVATE cxx_std_11)
if (NOT MSVC)
target_compile_options(${TARGET} PRIVATE -Wno-cast-qual) # stb_image.h
diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp
index 1ae9077b..61932e65 100644
--- a/examples/llava/clip.cpp
+++ b/examples/llava/clip.cpp
@@ -610,8 +610,8 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
int idx_mean = get_key_idx(ctx, KEY_IMAGE_MEAN);
int idx_std = get_key_idx(ctx, KEY_IMAGE_STD);
for (int i = 0; i < 3; ++i) {
- new_clip->image_mean[i] = *((float *)gguf_get_arr_data(ctx, idx_mean));
- new_clip->image_std[i] = *((float *)gguf_get_arr_data(ctx, idx_std));
+ new_clip->image_mean[i] = *((const float *)gguf_get_arr_data(ctx, idx_mean));
+ new_clip->image_std[i] = *((const float *)gguf_get_arr_data(ctx, idx_std));
}
if (verbosity >= 2) {