-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
>$ ./bin/sam -t 16 -i ../img.jpg -m ../checkpoints/ggml-model-f16.bin
main: seed = 1773585963
main: loaded image '../img.jpg' (680 x 453)
get_screen_size: screen size (1024 x 1600)
downscale_img_to_screen: screen size (1024 x 1600)
downscale_img_to_screen: img size (680 x 453)
sam_ggml_model_load: loading model from '../checkpoints/ggml-model-f16.bin' - please wait ...
sam_ggml_model_load: n_enc_state = 768
sam_ggml_model_load: n_enc_layer = 12
sam_ggml_model_load: n_enc_head = 12
sam_ggml_model_load: n_enc_out_chans = 256
sam_ggml_model_load: n_pt_embd = 4
sam_ggml_model_load: ftype = 1
sam_ggml_model_load: qntvr = 0
./bin/sam: symbol lookup error: /pr/Neural/sam.cpp/build/bin/libsam.cpp.so: undefined symbol: ggml_type_sizef
>$ grep -ri ggml_type_sizef /usr/local/include
/usr/local/include/ggml.h: GGML_API double ggml_type_sizef(enum ggml_type type), // ggml_type_size()/ggml_blck_size() as float
Maybe best to include the ggml.h and ggml-alloc.h that works with your program?
I footled around a bit more and got a build.
Seems to be running on cpu well enough.
my cmake config:
CMAKE_BUILD_TYPE Release
CMAKE_INSTALL_PREFIX /usr/local
GGML_ALL_WARNINGS ON
GGML_ALL_WARNINGS_3RD_PARTY OFF
GGML_AVX ON
GGML_AVX2 ON
GGML_AVX512 OFF
GGML_AVX512_VBMI OFF
GGML_AVX512_VNNI OFF
GGML_BUILD_EXAMPLES OFF
GGML_BUILD_TESTS OFF
GGML_CLBLAST OFF
GGML_CUBLAS OFF
GGML_F16C ON
GGML_FMA ON
GGML_METAL OFF
GGML_NO_ACCELERATE OFF
GGML_OPENBLAS OFF
GGML_PERF OFF
GGML_SANITIZE_ADDRESS OFF
GGML_SANITIZE_THREAD OFF
GGML_SANITIZE_UNDEFINED OFF
GGML_TEST_COVERAGE OFF
SAM_BUILD_EXAMPLES ON
SDL2_DIR /usr/lib/x86_64-linux-gnu/cmake/SDL2
Maybe someone with some skill could get vulkan going for the poor faction?
sam.cpp is beautiful and great and thank you very much!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels