Skip to content

Commit

Permalink
lora: better photomaker support?
Browse files Browse the repository at this point in the history
  • Loading branch information
stduhpf committed Dec 14, 2024
1 parent 68c23f3 commit e54d604
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lora.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ struct LoraModel : public GGMLRunner {
blk_name = blk_name.substr(0, k_pos);
// }
keys.push_back(blk_name);
keys.push_back("lora." + blk_name);
if (sd_version_is_dit(version)) {
if (blk_name.find("model.diffusion_model") != std::string::npos) {
blk_name.replace(blk_name.find("model.diffusion_model"), sizeof("model.diffusion_model") - 1, "transformer");
Expand Down

0 comments on commit e54d604

Please sign in to comment.