Skip to content

Commit 2e79a82

Browse files
authored
refactor: reorganize code and use c api (#133)
1 parent b139434 commit 2e79a82

22 files changed

+530339
-49456
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ add_subdirectory(thirdparty)
6060

6161
set(SD_LIB stable-diffusion)
6262

63-
add_library(${SD_LIB} stable-diffusion.h stable-diffusion.cpp model.h model.cpp util.h util.cpp)
63+
add_library(${SD_LIB} stable-diffusion.h stable-diffusion.cpp model.h model.cpp util.h util.cpp upscaler.cpp
64+
ggml_extend.hpp clip.hpp common.hpp unet.hpp tae.hpp esrgan.hpp lora.hpp denoiser.hpp rng.hpp rng_philox.hpp)
6465
target_link_libraries(${SD_LIB} PUBLIC ggml zip)
6566
target_include_directories(${SD_LIB} PUBLIC . thirdparty)
6667
target_compile_features(${SD_LIB} PUBLIC cxx_std_11)

0 commit comments

Comments
 (0)