ack controlnet deprecated their input_image param like 2 months ago and broke my terrible impelementation ha ha ha
This commit is contained in:
parent
b2dab98a59
commit
70d7a5ce5c
3 changed files with 16 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
<!doctype html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
@ -339,7 +339,7 @@
|
|||
<br />
|
||||
<span id="version">
|
||||
<a href="https://github.com/zero01101/openOutpaint" target="_blank">
|
||||
v20240427.001
|
||||
v20240807.001
|
||||
</a>
|
||||
<br />
|
||||
<a
|
||||
|
@ -576,7 +576,7 @@
|
|||
src="js/ui/tool/generic.js?v=3e678e0"
|
||||
type="text/javascript"></script>
|
||||
|
||||
<script src="js/ui/tool/dream.js?v=56c7c50" type="text/javascript"></script>
|
||||
<script src="js/ui/tool/dream.js?v=9ae0612" type="text/javascript"></script>
|
||||
<script
|
||||
src="js/ui/tool/maskbrush.js?v=e9bd0eb"
|
||||
type="text/javascript"></script>
|
||||
|
@ -612,3 +612,4 @@
|
|||
<script src="js/webui.js?v=ccd423a" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
9
test.html
Normal file
9
test.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Test</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Test</h1>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue