feat: ControlNet Union support for SDXL (#2284)

This commit is contained in:
Daniele authored and GitHub committed 2026-11-07 23:33:41 +08:00
1 parent 5a1ba5d895
commit fdfc913c51
16 files changed
+343 -10

No files matched your search

+3
View File
@@ -253,6 +253,9 @@ namespace sd::pipeline {
if (sd_img_gen_params->control_image.data != nullptr) {
control_image_tensor = sd_image_to_tensor(sd_img_gen_params->control_image, request->width, request->height);
if (!sd->set_control_type(request->control_type)) {
return std::nullopt;
}
}
if (init_image_tensor.empty() || mask_image_tensor.empty()) {