mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 03:24:30 +00:00
feat: add --taesd-preview-only to shared context params (#2184)
This commit is contained in:
1 parent
a77d362318
commit
a0c8508e72
6 files changed
+14
-12
No files matched your search
@@ -94,7 +94,7 @@ static void change_model(ServerRuntime& runtime, const httplib::Request& req, ht
|
||||
*runtime.ctx_params = unload ? models.base_context : std::move(context);
|
||||
*runtime.default_gen_params = unload ? models.base_defaults : std::move(defaults);
|
||||
if (!unload) {
|
||||
auto params = runtime.ctx_params->to_sd_ctx_params_t(false);
|
||||
auto params = runtime.ctx_params->to_sd_ctx_params_t();
|
||||
models.context.reset(new_sd_ctx(¶ms));
|
||||
if (!models.context) {
|
||||
throw std::runtime_error("Model initialization failed; check the server log for component compatibility and memory errors");
|
||||
|
||||
Reference in new issue
Block a user