Skip to content

Commit e687913

Browse files
authored
chore: remove lora_model_dir parameter (#1100)
1 parent 200cb6f commit e687913

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

examples/common/common.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,6 @@ struct SDContextParams {
796796
vae_path.c_str(),
797797
taesd_path.c_str(),
798798
control_net_path.c_str(),
799-
lora_model_dir.c_str(),
800799
embedding_vec.data(),
801800
static_cast<uint32_t>(embedding_vec.size()),
802801
photo_maker_path.c_str(),

stable-diffusion.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ class StableDiffusionGGML {
134134

135135
std::map<std::string, struct ggml_tensor*> tensors;
136136

137-
std::string lora_model_dir;
138137
// lora_name => multiplier
139138
std::unordered_map<std::string, float> curr_lora_state;
140139

@@ -206,7 +205,6 @@ class StableDiffusionGGML {
206205
n_threads = sd_ctx_params->n_threads;
207206
vae_decode_only = sd_ctx_params->vae_decode_only;
208207
free_params_immediately = sd_ctx_params->free_params_immediately;
209-
lora_model_dir = SAFE_STR(sd_ctx_params->lora_model_dir);
210208
taesd_path = SAFE_STR(sd_ctx_params->taesd_path);
211209
use_tiny_autoencoder = taesd_path.size() > 0;
212210
offload_params_to_cpu = sd_ctx_params->offload_params_to_cpu;
@@ -2536,7 +2534,6 @@ char* sd_ctx_params_to_str(const sd_ctx_params_t* sd_ctx_params) {
25362534
"vae_path: %s\n"
25372535
"taesd_path: %s\n"
25382536
"control_net_path: %s\n"
2539-
"lora_model_dir: %s\n"
25402537
"photo_maker_path: %s\n"
25412538
"tensor_type_rules: %s\n"
25422539
"vae_decode_only: %s\n"
@@ -2566,7 +2563,6 @@ char* sd_ctx_params_to_str(const sd_ctx_params_t* sd_ctx_params) {
25662563
SAFE_STR(sd_ctx_params->vae_path),
25672564
SAFE_STR(sd_ctx_params->taesd_path),
25682565
SAFE_STR(sd_ctx_params->control_net_path),
2569-
SAFE_STR(sd_ctx_params->lora_model_dir),
25702566
SAFE_STR(sd_ctx_params->photo_maker_path),
25712567
SAFE_STR(sd_ctx_params->tensor_type_rules),
25722568
BOOL_STR(sd_ctx_params->vae_decode_only),

stable-diffusion.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ typedef struct {
168168
const char* vae_path;
169169
const char* taesd_path;
170170
const char* control_net_path;
171-
const char* lora_model_dir;
172171
const sd_embedding_t* embeddings;
173172
uint32_t embedding_count;
174173
const char* photo_maker_path;

0 commit comments

Comments
 (0)