feat: add ernie image support (#1427)

This commit is contained in:
leejet
2026-04-17 00:51:42 +08:00
committed by GitHub
parent c41c5ded7a
commit 5c243db9a8
14 changed files with 699 additions and 20 deletions

View File

@@ -1049,6 +1049,9 @@ SDVersion ModelLoader::get_sd_version() {
if (tensor_storage.name.find("model.diffusion_model.cap_embedder.0.weight") != std::string::npos) {
return VERSION_Z_IMAGE;
}
if (tensor_storage.name.find("model.diffusion_model.layers.0.adaLN_sa_ln.weight") != std::string::npos) {
return VERSION_ERNIE_IMAGE;
}
if (tensor_storage.name.find("model.diffusion_model.blocks.0.cross_attn.norm_k.weight") != std::string::npos) {
is_wan = true;
}