mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-07-29 06:10:52 -05:00
merge commit fixing lora free param buffer error
This commit is contained in:
@@ -80,7 +80,7 @@ public:
|
||||
std::string lora_model_dir;
|
||||
// lora_name => multiplier
|
||||
std::unordered_map<std::string, float> curr_lora_state;
|
||||
std::map<std::string, LoraModel> loras;
|
||||
// std::map<std::string, LoraModel> loras;
|
||||
|
||||
std::shared_ptr<Denoiser> denoiser = std::make_shared<CompVisDenoiser>();
|
||||
ggml_backend_t backend = NULL; // general backend
|
||||
@@ -451,7 +451,7 @@ public:
|
||||
|
||||
lora.multiplier = multiplier;
|
||||
lora.apply(tensors, n_threads);
|
||||
loras[lora_name] = lora;
|
||||
// loras[lora_name] = lora;
|
||||
lora.free_params_buffer();
|
||||
|
||||
int64_t t1 = ggml_time_ms();
|
||||
|
||||
Reference in New Issue
Block a user