Skip to content

Commit 445aad5

Browse files
committed
remove sdcpp qwen image lora hack
1 parent 84765f5 commit 445aad5

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

otherarch/sdcpp/name_conversion.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,16 +1053,6 @@ std::string convert_tensor_name(std::string name, SDVersion version) {
10531053
if (sd_version_is_unet(version) || is_underline || is_lycoris_underline) {
10541054
name = convert_sep_to_dot(name);
10551055
}
1056-
1057-
//kcpp hack: name surgery for qwen image, https://github.com/leejet/stable-diffusion.cpp/issues/1131
1058-
const std::string badprefix = "unet_transformer_blocks_";
1059-
const std::string goodprefix = "lora.model.diffusion_model.transformer_blocks.";
1060-
if(is_lora && sd_version_is_qwen_image(version) && starts_with(name,badprefix))
1061-
{
1062-
name = goodprefix + name.substr(badprefix.size());
1063-
name = convert_sep_to_dot(name);
1064-
}
1065-
return name;
10661056
}
10671057

10681058
std::unordered_map<std::string, std::string> prefix_map = {

0 commit comments

Comments
 (0)