feat: add control-net z-image (#2187)

This commit is contained in:
SolicTous authored and GitHub committed 2026-10-25 03:11:57 +08:00
1 parent 4c870cc60c
commit b29cad540a
6 files changed
+470 -21

No files matched your search

+3
View File
@@ -247,6 +247,9 @@ namespace sd::model_builders {
const auto& tensor_storage_map = ctx.tensor_storage_map;
const auto version = ctx.version;
const auto& weight_manager = ctx.weight_manager;
if (sd_version_is_z_image(version)) {
return true;
}
if (!ensure_backend_pair(ctx.backends, SDBackendModule::CONTROL_NET)) {
return false;
}