Closed kelteseth closed 1 year ago
Works for me.
You must get SDL2 DEV package for VC to work in Windows, then point CMAKE to where the sdl2-config.cmake resides. After that everything worked for me.
cmake -DSDL2_DIR=E:\SDL2-devel-2.28.3-VC\SDL2-2.28.3\cmake ..
https://github.com/libsdl-org/SDL/releases/tag/release-2.28.3
Finally, you'll need to copy the SDL2.dll to be next to the sam.exe, otherwise, you'll get an error about a missing dll when you run.
I've integrated it to visual studio: https://github.com/spacewalk01/sam-cpp-vs
Nothing happens except for the two prints.
I resolved that inserting ggml_time_init();
in the beginning of the function std::shared_ptr<sam_state> sam_load_model(const sam_params & params)
in the file sam.cpp
Like this:
std::shared_ptr<sam_state> sam_load_model(const sam_params & params) {
ggml_time_init(); // add this and runs normal
const int64_t t_start_ms = ggml_time_ms();
This was already added last week in the master branch https://github.com/YavorGIvanov/sam.cpp/commit/39aa3ebbe35d5875e6a63f7b3cf60b61b6bd856b
Closing for now. If any other similar problem happens on Windows, please open a new issue.
Nothing happens except for the two prints. Also, what license does this project have? Cheers!