style: format code

This commit is contained in:
leejet committed 2024-01-29 23:05:18 +08:00
1 parent 36ec16ac99
commit 349439f239
14 files changed
+200 -202

No files matched your search

+1 -1
View File
@@ -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);