mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-08-06 18:20:42 -05:00
style: format code
This commit is contained in:
@@ -375,7 +375,7 @@ std::string convert_tensor_name(const std::string& name) {
|
||||
new_name = convert_open_clip_to_hf_clip(name);
|
||||
} else if (starts_with(name, "first_stage_model.decoder")) {
|
||||
new_name = convert_vae_decoder_name(name);
|
||||
} else if (starts_with(name, "control_model.")) { // for controlnet pth models
|
||||
} else if (starts_with(name, "control_model.")) { // for controlnet pth models
|
||||
size_t pos = name.find('.');
|
||||
if (pos != std::string::npos) {
|
||||
new_name = name.substr(pos + 1);
|
||||
|
||||
Reference in New Issue
Block a user