feat: add Anima support (#1296)

This commit is contained in:
rmatif
2026-03-01 08:23:18 +01:00
committed by GitHub
parent 0752cc9d3a
commit 4cdfff5ff2
8 changed files with 1042 additions and 17 deletions

View File

@@ -1057,6 +1057,9 @@ SDVersion ModelLoader::get_sd_version() {
if (tensor_storage.name.find("model.diffusion_model.transformer_blocks.0.img_mod.1.weight") != std::string::npos) {
return VERSION_QWEN_IMAGE;
}
if (tensor_storage.name.find("model.diffusion_model.net.llm_adapter.blocks.0.cross_attn.q_proj.weight") != std::string::npos) {
return VERSION_ANIMA;
}
if (tensor_storage.name.find("model.diffusion_model.double_stream_modulation_img.lin.weight") != std::string::npos) {
is_flux2 = true;
}