From 70d7a5ce5c1ba831a534da890c8612cb1c75d141 Mon Sep 17 00:00:00 2001 From: tim h Date: Wed, 7 Aug 2024 17:38:47 -0500 Subject: [PATCH] ack controlnet deprecated their input_image param like 2 months ago and broke my terrible impelementation ha ha ha --- index.html | 7 ++++--- js/ui/tool/dream.js | 4 +++- test.html | 9 +++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 test.html diff --git a/index.html b/index.html index c5dddae..9e8a123 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + @@ -339,7 +339,7 @@
- v20240427.001 + v20240807.001
- + @@ -612,3 +612,4 @@ + diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index 5d23d73..f12ecf7 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -3339,6 +3339,7 @@ function addControlNetToAlwaysOnScripts(state, initCanvas, maskCanvas) { //img2img? state.alwayson_scripts.controlnet.args = [ { + enabled: true, module: extensions.selectedControlNetModule, model: extensions.selectedControlNetModel, control_mode: document.getElementById("controlNetMode-select").value, @@ -3351,10 +3352,11 @@ function addControlNetToAlwaysOnScripts(state, initCanvas, maskCanvas) { } else { state.alwayson_scripts.controlnet.args = [ { + enabled: true, module: extensions.selectedControlNetModule, model: extensions.selectedControlNetModel, control_mode: document.getElementById("controlNetMode-select").value, - input_image: initimg, //initCanvas.toDataURL(), + image: initimg, //initCanvas.toDataURL(), mask: maskimg, //maskCanvas.toDataURL(), processor_res: 64, resize_mode: document.getElementById("controlNetResize-select").value, diff --git a/test.html b/test.html new file mode 100644 index 0000000..c81589d --- /dev/null +++ b/test.html @@ -0,0 +1,9 @@ + + + Test + + +

Test

+

Test

+ +