mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 11:26:34 +00:00
feat: ControlNet Union support for SDXL (#2284)
This commit is contained in:
1 parent
5a1ba5d895
commit
fdfc913c51
16 files changed
+343
-10
No files matched your search
@@ -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()) {
|
||||
|
||||
Reference in new issue
Block a user