feat: add Mage-Flow support (#1808)

This commit is contained in:
leejet
2026-07-23 01:23:25 +08:00
committed by GitHub
parent 35fb21f3e0
commit 8a51eb9284
18 changed files with 861 additions and 26 deletions
+4
View File
@@ -498,6 +498,10 @@ SDVersion ModelLoader::get_sd_version() {
return VERSION_MINIT2I;
}
if (tensor_storage.name.find("model.diffusion_model.transformer_blocks.0.img_mod.1.weight") != std::string::npos) {
auto img_in = tensor_storage_map.find("model.diffusion_model.img_in.weight");
if (img_in != tensor_storage_map.end() && img_in->second.ne[0] == 128) {
return VERSION_MAGE_FLOW;
}
if (tensor_storage_map.find("model.diffusion_model.time_text_embed.addition_t_embedding.weight") != tensor_storage_map.end()) {
return VERSION_QWEN_IMAGE_LAYERED;
}