File size: 18,929 Bytes
b5ba7a5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 |
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>openOutpaint 🐠</title>
<!-- CSS Variables -->
<link href="css/colors.css?v=f732f19" rel="stylesheet" />
<link href="css/icons.css?v=e6f94af" rel="stylesheet" />
<link href="css/index.css?v=a1f5bff" rel="stylesheet" />
<link href="css/layers.css?v=92c0352" rel="stylesheet" />
<link href="css/ui/generic.css?v=30837f8" rel="stylesheet" />
<link href="css/ui/notifications.css?v=7b152de" rel="stylesheet" />
<link href="css/ui/workspace.css?v=2a9fdf7" rel="stylesheet" />
<link href="css/ui/history.css?v=0b03861" rel="stylesheet" />
<link href="css/ui/layers.css?v=1d66c2b" rel="stylesheet" />
<link href="css/ui/toolbar.css?v=109c78f" rel="stylesheet" />
<!-- Tool Specific CSS -->
<link href="css/ui/tool/dream.css?v=2d8a8ac" rel="stylesheet" />
<link href="css/ui/tool/stamp.css?v=6f5ce15" rel="stylesheet" />
<link href="css/ui/tool/colorbrush.css?v=57c8be5" rel="stylesheet" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<!-- Main Toolbar -->
<div
id="infoContainer"
class="floating-window"
style="left: 10px; top: 10px">
<div id="infoTitleBar" class="draggable floating-window-title">
openOutpaint 🐠
<div style="flex: 1"></div>
<button id="settings-btn" class="ui icon header-button">
<div class="icon-settings"></div>
</button>
</div>
<div id="info" class="menu-container" style="min-width: 200px">
<div
id="workspace-select-area"
style="display: flex; margin-bottom: 5px">
<div id="workspace-select"></div>
<div class="buttons" style="display: flex">
<button
id="save-workspace-btn"
class="ui inline-icon icon-save workspace-btn"
title="Save Workspace"></button>
<button
id="rename-workspace-btn"
class="ui inline-icon icon-pencil workspace-btn"
title="Rename Workspace"></button>
<button
id="more-workspace-btn"
class="ui inline-icon icon-more-horizontal workspace-btn"
title="More Options"></button>
<div
id="more-workspace-menu"
class="workspace-collapsible collapsed">
<div>
<button
id="export-workspace-btn"
class="ui inline-icon icon-download workspace-btn"
title="Export Workspace"></button>
<button
id="import-workspace-btn"
class="ui inline-icon icon-upload workspace-btn"
title="Import Workspace"></button>
<button
id="delete-workspace-btn"
class="ui inline-icon icon-trash workspace-btn"
title="Delete Workspace"></button>
</div>
<div style="width: 5px; background-color: var(--c-primary)"></div>
</div>
<div style="width: 5px; background-color: var(--c-primary)"></div>
</div>
</div>
<div class="host-field-wrapper">
<div class="host-field">
<div class="label">Host</div>
<input id="host" value="http://127.0.0.1:7860" />
</div>
<div
id="connection-status-indicator"
class="connection-status before">
<span id="connection-status-indicator-text">Waiting</span>
</div>
</div>
<!-- Prompts section -->
<button type="button" class="collapsible">Prompts</button>
<div class="content prompt">
<div class="inputs">
<div class="prompt-wrapper">
<div class="prompt-indicator positive" title="Prompt"></div>
<textarea id="prompt" class="expandable"></textarea>
</div>
<div class="prompt-wrapper">
<div
class="prompt-indicator negative"
title="Negative Prompt"></div>
<textarea id="negPrompt" class="expandable"></textarea>
</div>
<div class="prompt-wrapper">
<div class="prompt-indicator styles" title="Styles"></div>
<div id="style-ac-mselect" style="flex-shrink: 1"></div>
</div>
</div>
<div class="prompt-history-wrapper">
<div class="prompt-history-container">
<div id="prompt-history"></div>
<button
id="prompt-history-btn"
class="prompt-history-btn"></button>
</div>
</div>
</div>
<!-- SD section -->
<button type="button" class="collapsible">
Stable Diffusion settings
</button>
<div class="content">
<label>Model:</label>
<div id="models-ac-select"></div>
<button id="refreshModelsBtn" onclick="getModels(true)">
<img
class="refreshbutton"
src="./res/icons/refresh-cw.svg?v=f627140"
alt="refresh models"
title="refresh models" />
</button>
<label>Sampler:</label>
<div id="sampler-ac-select"></div>
<label for="seed">Seed (-1 for random):</label>
<br />
<input
type="number"
id="seed"
onchange="changeSeed()"
min="-1"
max="99999999999999999999"
value="-1"
step="1" />
<br />
<label>Lora:</label>
<div id="lora-ac-select"></div>
<input type="checkbox" id="cbxHRFix" onchange="changeHiResFix()" />
<label for="cbxHRFix">Apply Txt2Img HRfix</label>
<br />
<input
type="checkbox"
id="cbxHRFSquare"
onchange="changeHiResSquare()"
class="hrfix" />
<label for="cbxHRFSquare" class="hrfix">
Square Firstpass Aspect
</label>
<br class="hrfix" />
<div id="hrFixScale" class="hrfix"></div>
<div id="hrFixLockPx" class="hrfix"></div>
<div id="hrFixSteps" class="hrfix"></div>
<label id="hrFixLabel" class="hrfix">Choose HRfix upscaler</label>
<div id="hrFixUpscaler" class="hrfix"></div>
<div id="hrDenoising" class="hrfix"></div>
<input
type="checkbox"
id="cbxRestoreFaces"
onchange="changeRestoreFaces()" />
<label for="cbxRestoreFaces">Restore Faces</label>
<br />
<input
type="checkbox"
id="cbxSyncCursorSize"
onchange="changeSyncCursorSize()" />
<label for="cbxSyncCursorSize">Sync cursor size</label>
<br />
<div id="resolution"></div>
<div id="steps"></div>
<div id="cfgScale"></div>
<div id="batchSize"></div>
<div id="batchCount"></div>
<label for="maskBlur">Mask blur:</label>
<span id="maskBlurText"></span>
<br />
<input
type="number"
id="maskBlur"
name="maskBlur"
min="0"
max="256"
value="0"
step="1"
onchange="changeMaskBlur()" />
</div>
<!-- Extensions section -->
<button type="button" class="collapsible">Extensions</button>
<div class="content">
<input
type="checkbox"
id="cbxDynPrompts"
onchange="changeDynamicPromptsExtension()"
disabled="disabled" />
<label for="cbxDynPrompts">Dynamic Prompts</label>
<br />
<input
type="checkbox"
id="cbxControlNet"
onchange="changeControlNetExtension()"
disabled="disabled" />
<label for="cbxControlNet">ControlNet In/Outpainting</label>
<br class="controlNetElement" />
<label id="cnModuleLabel" class="controlNetElement">
Inpaint Preprocessor
</label>
<div id="controlNetModule-ac-select" class="controlNetElement"></div>
<label id="cnModelLabel" class="controlNetElement">Model</label>
<div id="controlNetModel-ac-select" class="controlNetElement"></div>
<label id="cnControlLabel" class="controlNetElement">
Inpaint Mode
</label>
<select id="controlNetMode-select" class="controlNetElement">
<option value="Balanced">balanced</option>
<option value="My prompt is more important">+prompt</option>
<option value="ControlNet is more important">+CN</option>
</select>
<br class="controlNetElement" />
<label id="cnResizeLabel" class="controlNetElement">
Resize Mode
</label>
<select id="controlNetResize-select" class="controlNetElement">
<option value="Just Resize">resize</option>
<option value="Crop and Resize">+crop</option>
<option value="Resize and Fill">+fill</option>
</select>
<br class="controlNetElement" />
<input
type="checkbox"
id="cbxControlNetReferenceLayer"
onchange="changeControlNetReference()"
class="controlNetElement" />
<label for="cbxControlNetReferenceLayer" class="controlNetElement">
Reference as 1st CN Unit
</label>
<br class="controlNetReferenceElement" />
<label id="cnReferenceModuleLabel" class="controlNetReferenceElement">
Reference Preprocessor
</label>
<div
id="controlNetReferenceModule-ac-select"
class="controlNetReferenceElement"></div>
<div
id="controlNetReferenceFidelity"
class="controlNetReferenceElement"></div>
<label id="cnResizeLabel" class="controlNetReferenceElement">
Reference Mode
</label>
<select
id="controlNetReferenceMode-select"
class="controlNetReferenceElement">
<option value="Balanced">balanced</option>
<option value="My prompt is more important">+prompt</option>
<option value="ControlNet is more important">+CN</option>
</select>
</div>
<!-- Save/load image section -->
<button type="button" class="collapsible">Save/Upscaling</button>
<div class="content">
<button onclick="downloadCanvas()">Save canvas</button>
<br />
<label>Choose upscaler</label>
<div id="upscaler-ac-select"></div>
<div id="upscaleX"></div>
<button onclick="upscaleAndDownload()">
Upscale (might take a sec)
</button>
<br />
<button onclick="newImage()">Clear canvas</button>
</div>
<!-- Debug info -->
<button type="button" class="collapsible">Debug info</button>
<div id="coords" class="content">
<label for="mouseX">mouseX:</label>
<span id="mouseX"></span>
<br />
<label for="mouseY">mouseY:</label>
<span id="mouseY"></span>
<br />
<label for="canvasX">canvasX:</label>
<span id="canvasX"></span>
<br />
<label for="canvasY">canvasY:</label>
<span id="canvasY"></span>
<br />
<label for="snapX">snapX:</label>
<span id="snapX"></span>
<br />
<label for="snapY">snapY:</label>
<span id="snapY"></span>
<br />
<label for="heldButton">Mouse button:</label>
<span id="heldButton"></span>
<br />
<button id="resetToDefaults" onclick="resetToDefaults()">
Reset to defaults
</button>
<button id="toggleDebugBtn" onclick="global.toggledebug()">
Toggle Debug
</button>
<br />
<span id="version">
<a href="https://github.com/zero01101/openOutpaint" target="_blank">
<s>Alpha release v0.0.16.5</s>
v20230812.001
</a>
<br />
<a
href="https://github.com/zero01101/openOutpaint/wiki/Manual"
target="_blank">
User Manual
</a>
</span>
<br />
<!-- <hr /> -->
</div>
<div style="display: flex; align-items: center">
<div
style="
flex: 1;
border-top: 1px black solid;
margin-right: 10px;
"></div>
Context Menu
<div
style="
flex: 1;
border-top: 1px black solid;
margin-left: 10px;
"></div>
</div>
<div id="tool-context" class="context-menu"></div>
</div>
</div>
<!-- History -->
<div id="ui-history" class="floating-window" style="right: 10px; top: 10px">
<div class="draggable floating-window-title">
History
<div style="flex: 1"></div>
<button
id="history-logs-btn"
class="ui icon header-button"
title="Generate History Log">
<div class="icon-scroll"></div>
</button>
</div>
<div class="menu-container" style="min-width: 200px">
<div id="history" class="history"></div>
<div class="button-array" style="padding: 10px">
<button type="button" onclick="commands.undo()" class="button tool">
undo
</button>
<button type="button" onclick="commands.redo()" class="button tool">
redo
</button>
</div>
</div>
</div>
<!-- Layers -->
<div
id="ui-layers"
class="floating-window"
style="right: 10px; bottom: 10px">
<div class="draggable floating-window-title">
Layers
<div style="flex: 1"></div>
<button
id="unzoom-btn"
class="ui icon header-button"
title="Reset Zoom to 1x"
onclick="unzoom()">
<div class="icon-unzoom"></div>
</button>
</div>
<div class="menu-container" style="min-width: 200px">
<div class="layer-manager">
<div id="layer-list" class="layer-list"></div>
<div class="ui separator"></div>
<div class="layer-list-actions">
<button
type="button"
title="Add Layer"
onclick="commands.runCommand('addLayer', 'Added Layer', {})"
class="ui icon button">
<div class="icon-file-plus"></div>
</button>
<button
type="button"
title="Move Layer Up"
onclick="commands.runCommand('moveLayer', 'Moved Layer Up',{delta: 1})"
class="ui icon button">
<div class="icon-chevron-up"></div>
</button>
<button
type="button"
title="Move Layer Down"
onclick="commands.runCommand('moveLayer', 'Moved Layer Down', {delta: -1})"
class="ui icon button">
<div class="icon-chevron-down"></div>
</button>
<button
type="button"
title="Merge Layer Down"
onclick="commands.runCommand('mergeLayer', 'Merged Layer Down')"
class="ui icon button">
<div class="icon-chevron-flat-down"></div>
</button>
<button
type="button"
title="Delete Layer"
onclick="commands.runCommand('deleteLayer', 'Deleted Layer')"
class="ui icon button">
<div class="icon-file-x"></div>
</button>
</div>
</div>
</div>
</div>
<!-- Scripts-->
<div
id="ui-script"
class="floating-window"
style="right: 10px; top: 330px; display: none">
<div class="draggable floating-window-title">Script</div>
<div class="menu-container" style="min-width: 200px">
<div id="script-select" class="script-select">
<select id="script-selector" onchange="changeScript(event)">
<!-- <option id="no_selected_script" value="">Select a script...</option>
<option id="custom" value="custom">Custom</option> -->
</select>
<!-- <button
id="save-custom-script"
disabled="disabled"
title="Save custom script"
onclick="saveCustomScript()">
<image src="./res/icons/save.svg" width="60%"></image>
</button> -->
</div>
<div id="script-name" class="script-name">
<label for="script-name-input">Script Name:</label>
<br />
<input
id="script-name-input"
disabled="disabled"
onfocusout="storeUserscriptVal(event, 'name')" />
<br />
</div>
<div id="script-args" class="script-args">
<label for="script-args-input">Script Args List:</label>
<br />
<textarea
id="script-args-input"
onfocusout="storeUserscriptVal(event, 'args')"></textarea>
<br />
</div>
</div>
</div>
<!-- Toolbar -->
<div
id="ui-toolbar"
class="floating-window toolbar"
style="right: 270px; top: 10px">
<div class="draggable handle">
<span class="line"></span>
</div>
<div class="lock-indicator" id="toolbar-lock-indicator"></div>
<div class="toolbar-section"></div>
</div>
<!-- Canvases -->
<div id="layer-render" class="layer-render-target"></div>
<!-- Overlay -->
<canvas id="layer-overlay" class="overlay-canvas"></canvas>
<canvas id="layer-debug-overlay" class="overlay-canvas"></canvas>
<!-- Page Overlay -->
<div id="page-overlay-wrapper" class="page-overlay invisible">
<div class="page-overlay-window">
<div class="title">
Settings
<button id="settings-btn-close" class="close"></button>
</div>
<div class="ui separator"></div>
<iframe
id="page-overlay"
src="pages/configuration.html?v=fdbd833"></iframe>
</div>
</div>
<!-- Basics -->
<script src="js/global.js?v=ac30d16" type="text/javascript"></script>
<script src="js/defaults.js?v=5b06818" type="text/javascript"></script>
<script src="js/extensions.js?v=0bd1fbe" type="text/javascript"></script>
<!-- Base Libs -->
<script src="js/lib/util.js?v=379aef7" type="text/javascript"></script>
<script
src="js/lib/notifications.js?v=270db88"
type="text/javascript"></script>
<script src="js/lib/events.js?v=2ab7933" type="text/javascript"></script>
<script src="js/lib/db.js?v=434363b" type="text/javascript"></script>
<script src="js/lib/input.js?v=769485c" type="text/javascript"></script>
<script src="js/lib/layers.js?v=26b7436" type="text/javascript"></script>
<script src="js/lib/commands.js?v=ad60afc" type="text/javascript"></script>
<script src="js/lib/toolbar.js?v=4fcf718" type="text/javascript"></script>
<script src="js/lib/ui.js?v=17014b3" type="text/javascript"></script>
<script
src="js/initalize/layers.populate.js?v=066dc8e"
type="text/javascript"></script>
<!-- Configuration -->
<script src="js/config.js?v=9747005" type="text/javascript"></script>
<script src="js/theme.js?v=435cc1b" type="text/javascript"></script>
<!-- Content -->
<script src="js/prompt.js?v=7a1c68c" type="text/javascript"></script>
<script src="js/index.js?v=d4006e8" type="text/javascript"></script>
<script
src="js/ui/floating/history.js?v=4f29db4"
type="text/javascript"></script>
<script
src="js/ui/floating/layers.js?v=3f5807f"
type="text/javascript"></script>
<!-- Load Tools -->
<script
src="js/ui/tool/generic.js?v=3e678e0"
type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=95bd3f0" type="text/javascript"></script>
<script
src="js/ui/tool/maskbrush.js?v=e9bd0eb"
type="text/javascript"></script>
<script
src="js/ui/tool/colorbrush.js?v=84ff9fa"
type="text/javascript"></script>
<script
src="js/ui/tool/select.js?v=dfacef5"
type="text/javascript"></script>
<script src="js/ui/tool/stamp.js?v=4494df6" type="text/javascript"></script>
<script
src="js/ui/tool/interrogate.js?v=dd45b4a"
type="text/javascript"></script>
<!-- Initialize -->
<script
src="js/initalize/workspace.populate.js?v=925431d"
type="text/javascript"></script>
<script
src="js/initalize/shortcuts.populate.js?v=e68546f"
type="text/javascript"></script>
<script
src="js/initalize/toolbar.populate.js?v=c1ca438"
type="text/javascript"></script>
<script
src="js/initalize/debug.populate.js?v=64ad17f"
type="text/javascript"></script>
<script
src="js/initalize/ui.populate.js?v=b59b288"
type="text/javascript"></script>
<!-- Deals with webui communication -->
<script src="js/webui.js?v=ccd423a" type="text/javascript"></script>
</body>
</html>
|