Skip to content

Commit

Permalink
chore: typo remote => remove
Browse files Browse the repository at this point in the history
  • Loading branch information
leejet committed Nov 19, 2023
1 parent 0d9b801 commit 51b53d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stable-diffusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4635,14 +4635,14 @@ std::vector<uint8_t> StableDiffusion::txt2img(std::string prompt,
}
sd->rng->manual_seed(seed);

// extract and remote lora
// extract and remove lora
auto result_pair = extract_and_remove_lora(prompt);
std::unordered_map<std::string, float> lora_f2m = result_pair.first; // lora_name -> multiplier
for (auto& kv : lora_f2m) {
LOG_DEBUG("lora %s:%.2f", kv.first.c_str(), kv.second);
}
prompt = result_pair.second;
LOG_DEBUG("prompt after extract and remote lora: \"%s\"", prompt.c_str());
LOG_DEBUG("prompt after extract and remove lora: \"%s\"", prompt.c_str());

// load lora from file
int64_t t0 = ggml_time_ms();
Expand Down Expand Up @@ -4750,14 +4750,14 @@ std::vector<uint8_t> StableDiffusion::img2img(const std::vector<uint8_t>& init_i
}
sd->rng->manual_seed(seed);

// extract and remote lora
// extract and remove lora
auto result_pair = extract_and_remove_lora(prompt);
std::unordered_map<std::string, float> lora_f2m = result_pair.first; // lora_name -> multiplier
for (auto& kv : lora_f2m) {
LOG_DEBUG("lora %s:%.2f", kv.first.c_str(), kv.second);
}
prompt = result_pair.second;
LOG_DEBUG("prompt after extract and remote lora: \"%s\"", prompt.c_str());
LOG_DEBUG("prompt after extract and remove lora: \"%s\"", prompt.c_str());

// load lora from file
int64_t t0 = ggml_time_ms();
Expand Down

0 comments on commit 51b53d4

Please sign in to comment.