mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-12 13:28:37 +00:00
fix: avoid crash when the lora file is not found using immediately mode (#1022)
This commit is contained in:
parent
bc80225336
commit
20eb674100
@ -991,6 +991,9 @@ public:
|
|||||||
int64_t t0 = ggml_time_ms();
|
int64_t t0 = ggml_time_ms();
|
||||||
|
|
||||||
auto lora = load_lora_model_from_file(kv.first, kv.second, backend);
|
auto lora = load_lora_model_from_file(kv.first, kv.second, backend);
|
||||||
|
if (!lora || lora->lora_tensors.empty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
lora->apply(tensors, version, n_threads);
|
lora->apply(tensors, version, n_threads);
|
||||||
lora->free_params_buffer();
|
lora->free_params_buffer();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user