mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-06-09 15:56:39 +00:00
fix: only enable TAE after successful load (#1517)
This commit is contained in:
parent
f683c88a28
commit
b758b7de13
@ -327,8 +327,9 @@ public:
|
|||||||
LOG_INFO("loading tae from '%s'", sd_ctx_params->taesd_path);
|
LOG_INFO("loading tae from '%s'", sd_ctx_params->taesd_path);
|
||||||
if (!model_loader.init_from_file(sd_ctx_params->taesd_path, "tae.")) {
|
if (!model_loader.init_from_file(sd_ctx_params->taesd_path, "tae.")) {
|
||||||
LOG_WARN("loading tae from '%s' failed", sd_ctx_params->taesd_path);
|
LOG_WARN("loading tae from '%s' failed", sd_ctx_params->taesd_path);
|
||||||
|
} else {
|
||||||
|
use_tae = true;
|
||||||
}
|
}
|
||||||
use_tae = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen(SAFE_STR(sd_ctx_params->embeddings_connectors_path)) > 0) {
|
if (strlen(SAFE_STR(sd_ctx_params->embeddings_connectors_path)) > 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user