mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-07-30 14:50:41 -05:00
fix: avoid crash when the lora file is not found using immediately mode (#1022)
This commit is contained in:
@@ -991,6 +991,9 @@ public:
|
||||
int64_t t0 = ggml_time_ms();
|
||||
|
||||
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->free_params_buffer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user