mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 19:36:33 +00:00
merge commit fixing lora free param buffer error
This commit is contained in:
1 parent
a6a676b646
commit
aa21577363
1 file changed
+2
-2
@@ -80,7 +80,7 @@ public:
|
|||||||
std::string lora_model_dir;
|
std::string lora_model_dir;
|
||||||
// lora_name => multiplier
|
// lora_name => multiplier
|
||||||
std::unordered_map<std::string, float> curr_lora_state;
|
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>();
|
std::shared_ptr<Denoiser> denoiser = std::make_shared<CompVisDenoiser>();
|
||||||
ggml_backend_t backend = NULL; // general backend
|
ggml_backend_t backend = NULL; // general backend
|
||||||
@@ -451,7 +451,7 @@ public:
|
|||||||
|
|
||||||
lora.multiplier = multiplier;
|
lora.multiplier = multiplier;
|
||||||
lora.apply(tensors, n_threads);
|
lora.apply(tensors, n_threads);
|
||||||
loras[lora_name] = lora;
|
// loras[lora_name] = lora;
|
||||||
lora.free_params_buffer();
|
lora.free_params_buffer();
|
||||||
|
|
||||||
int64_t t1 = ggml_time_ms();
|
int64_t t1 = ggml_time_ms();
|
||||||
|
|||||||
Reference in new issue
Block a user