mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-11 04:51:25 +00:00
remove sdcpp qwen image lora hack
This commit is contained in:
parent
84765f5967
commit
445aad5e00
1 changed files with 0 additions and 10 deletions
|
|
@ -1053,16 +1053,6 @@ std::string convert_tensor_name(std::string name, SDVersion version) {
|
|||
if (sd_version_is_unet(version) || is_underline || is_lycoris_underline) {
|
||||
name = convert_sep_to_dot(name);
|
||||
}
|
||||
|
||||
//kcpp hack: name surgery for qwen image, https://github.com/leejet/stable-diffusion.cpp/issues/1131
|
||||
const std::string badprefix = "unet_transformer_blocks_";
|
||||
const std::string goodprefix = "lora.model.diffusion_model.transformer_blocks.";
|
||||
if(is_lora && sd_version_is_qwen_image(version) && starts_with(name,badprefix))
|
||||
{
|
||||
name = goodprefix + name.substr(badprefix.size());
|
||||
name = convert_sep_to_dot(name);
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
std::unordered_map<std::string, std::string> prefix_map = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue