mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-13 05:48:56 +00:00
add xlabs flux comfy converted lora support
This commit is contained in:
parent
d8c65b4436
commit
46eeff55f5
@ -422,7 +422,10 @@ std::string convert_diffusers_name_to_compvis(std::string key, char seq) {
|
|||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string convert_tensor_name(const std::string& name) {
|
std::string convert_tensor_name(std::string name) {
|
||||||
|
if (starts_with(name, "diffusion_model")) {
|
||||||
|
name = "model." + name;
|
||||||
|
}
|
||||||
std::string new_name = name;
|
std::string new_name = name;
|
||||||
if (starts_with(name, "cond_stage_model.") || starts_with(name, "conditioner.embedders.") || starts_with(name, "text_encoders.") || ends_with(name, ".vision_model.visual_projection.weight")) {
|
if (starts_with(name, "cond_stage_model.") || starts_with(name, "conditioner.embedders.") || starts_with(name, "text_encoders.") || ends_with(name, ".vision_model.visual_projection.weight")) {
|
||||||
new_name = convert_open_clip_to_hf_clip(name);
|
new_name = convert_open_clip_to_hf_clip(name);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user