File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ if(${CMAKE_VERSION} VERSION_LESS 3.14)
44 include (add_FetchContent_MakeAvailable.cmake)
55endif ()
66
7- set (SD_GIT_TAG 0e64238e4c4c902e0c043b741ae48fe22a2fd0fa )
7+ set (SD_GIT_TAG 78ad76f3f49a15692a550e6f73ad3a5765ffdb25 )
88set (SD_GIT_URL https://github.com/leejet/stable-diffusion.cpp)
99set (BUILD_SHARED_LIBS OFF )
1010
Original file line number Diff line number Diff line change @@ -141,7 +141,9 @@ struct stable_diffusion_ctx* stable_diffusion_init(
141141 const int n_threads,
142142 const bool vae_decode_only,
143143 const char * taesd_path,
144+ const char * esrgan_path,
144145 const bool free_params_immediately,
146+ const bool vae_tiling,
145147 const char * lora_model_dir,
146148 const char * rng_type
147149) {
@@ -153,7 +155,9 @@ struct stable_diffusion_ctx* stable_diffusion_init(
153155 n_threads,
154156 vae_decode_only,
155157 std::string (taesd_path),
158+ std::string (esrgan_path),
156159 free_params_immediately,
160+ vae_tiling,
157161 std::string (lora_model_dir),
158162 it->second
159163 );
@@ -168,7 +172,8 @@ bool stable_diffusion_load_from_file(
168172 const char * file_path,
169173 const char * vae_path,
170174 const char * wtype,
171- const char * schedule
175+ const char * schedule,
176+ const int clip_skip
172177) {
173178 auto e_wtype=ggmlTypeMap.find (std::string (wtype));
174179 if (e_wtype!=ggmlTypeMap.end ()){
@@ -181,7 +186,8 @@ bool stable_diffusion_load_from_file(
181186 std::string (file_path),
182187 std::string (vae_path),
183188 e_wtype->second ,
184- e_schedule->second
189+ e_schedule->second ,
190+ clip_skip
185191 );
186192 }
187193 return false ;
Original file line number Diff line number Diff line change @@ -92,18 +92,20 @@ STABLE_DIFFUSION_API stable_diffusion_ctx* stable_diffusion_init(
9292 int n_threads,
9393 bool vae_decode_only,
9494 const char *taesd_path,
95+ const char *esrgan_path,
9596 bool free_params_immediately,
97+ bool vae_tiling,
9698 const char * lora_model_dir,
9799 const char * rng_type
98100);
99101
100-
101102STABLE_DIFFUSION_API bool stable_diffusion_load_from_file (
102103 const struct stable_diffusion_ctx * ctx,
103104 const char * file_path,
104105 const char * vae_path,
105106 const char * wtype,
106- const char * schedule
107+ const char * schedule,
108+ int clip_skip
107109);
108110
109111STABLE_DIFFUSION_API const uint8_t * stable_diffusion_predict_image (
You can’t perform that action at this time.
0 commit comments