2022-11-29 20:08:43 -06:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en-US">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>openOutpaint 🐠</title>
|
|
|
|
<!-- CSS Variables -->
|
2022-12-28 20:22:09 -06:00
|
|
|
<link href="css/colors.css?v=3f81e80" rel="stylesheet" />
|
2022-12-28 19:52:14 -06:00
|
|
|
<link href="css/icons.css?v=a25504c" rel="stylesheet" />
|
2022-11-29 20:08:43 -06:00
|
|
|
|
2022-12-30 05:27:08 -06:00
|
|
|
<link href="css/index.css?v=69d3b9e" rel="stylesheet" />
|
2022-12-28 19:52:14 -06:00
|
|
|
<link href="css/layers.css?v=b4fbf61" rel="stylesheet" />
|
2022-11-29 20:54:09 -06:00
|
|
|
|
2022-12-28 19:52:14 -06:00
|
|
|
<link href="css/ui/generic.css?v=a15ce4b" rel="stylesheet" />
|
2022-11-29 20:08:43 -06:00
|
|
|
|
2022-12-28 19:52:14 -06:00
|
|
|
<link href="css/ui/history.css?v=0b03861" rel="stylesheet" />
|
|
|
|
<link href="css/ui/layers.css?v=4fd95fe" rel="stylesheet" />
|
|
|
|
<link href="css/ui/toolbar.css?v=109c78f" rel="stylesheet" />
|
2022-11-29 20:08:43 -06:00
|
|
|
|
|
|
|
<!-- Tool Specific CSS -->
|
2022-12-28 19:52:14 -06:00
|
|
|
<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" />
|
2022-11-29 20:08:43 -06:00
|
|
|
|
|
|
|
<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 🐠
|
2022-12-07 21:26:37 -06:00
|
|
|
<div style="flex: 1"></div>
|
|
|
|
<button id="settings-btn" class="ui icon header-button">
|
|
|
|
<div class="icon-settings"></div>
|
|
|
|
</button>
|
2022-11-29 20:08:43 -06:00
|
|
|
</div>
|
|
|
|
<div id="info" class="menu-container" style="min-width: 200px">
|
|
|
|
<label>
|
|
|
|
Host
|
|
|
|
<div class="host-field-wrapper">
|
|
|
|
<input id="host" value="http://127.0.0.1:7860" />
|
2022-12-02 12:42:09 -06:00
|
|
|
<div
|
|
|
|
id="connection-status-indicator"
|
|
|
|
class="connection-status before">
|
|
|
|
<span id="connection-status-indicator-text">Waiting</span>
|
2022-12-02 11:31:49 -06:00
|
|
|
</div>
|
2022-11-29 20:08:43 -06:00
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
<!-- Prompts section -->
|
|
|
|
<button type="button" class="collapsible">Prompts</button>
|
2022-12-12 15:25:32 -06:00
|
|
|
<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>
|
2022-11-29 20:08:43 -06:00
|
|
|
</div>
|
2022-12-12 15:25:32 -06:00
|
|
|
<div class="prompt-history-wrapper">
|
|
|
|
<div class="prompt-history-container">
|
2022-12-12 15:27:47 -06:00
|
|
|
<div id="prompt-history"></div>
|
2022-12-12 15:25:32 -06:00
|
|
|
<button
|
|
|
|
id="prompt-history-btn"
|
|
|
|
class="prompt-history-btn"></button>
|
|
|
|
</div>
|
2022-11-29 20:08:43 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- SD section -->
|
|
|
|
<button type="button" class="collapsible">
|
|
|
|
Stable Diffusion settings
|
|
|
|
</button>
|
|
|
|
<div class="content">
|
2022-12-08 15:23:17 -06:00
|
|
|
<label>Model:</label>
|
|
|
|
<div id="models-ac-select"></div>
|
|
|
|
<label>Sampler:</label>
|
|
|
|
<div id="sampler-ac-select"></div>
|
2022-11-29 20:08:43 -06:00
|
|
|
<label for="seed">Seed (-1 for random):</label>
|
|
|
|
<br />
|
|
|
|
<input
|
|
|
|
type="number"
|
|
|
|
id="seed"
|
|
|
|
onchange="changeSeed()"
|
|
|
|
min="1"
|
|
|
|
max="9999999999"
|
|
|
|
value="-1"
|
|
|
|
step="1" />
|
|
|
|
<br />
|
2022-12-03 06:53:12 -06:00
|
|
|
<input type="checkbox" id="cbxHRFix" onchange="changeHiResFix()" />
|
|
|
|
<label for="cbxHRFix">Auto txt2img HRfix</label>
|
2022-12-12 18:25:02 -06:00
|
|
|
<br />
|
2022-12-28 21:37:18 -06:00
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
id="cbxRestoreFaces"
|
|
|
|
onchange="changeRestoreFaces()" />
|
|
|
|
<label for="cbxRestoreFaces">Restore Faces</label>
|
|
|
|
<br />
|
2022-12-12 18:25:02 -06:00
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
id="cbxSyncCursorSize"
|
|
|
|
onchange="changeSyncCursorSize()" />
|
|
|
|
<label for="cbxSyncCursorSize">Sync cursor size</label>
|
|
|
|
<br />
|
2022-12-03 06:53:12 -06:00
|
|
|
<div id="resolution"></div>
|
2022-11-29 20:08:43 -06:00
|
|
|
<div id="steps"></div>
|
|
|
|
<div id="cfgScale"></div>
|
|
|
|
<div id="batchSize"></div>
|
|
|
|
<div id="batchCount"></div>
|
|
|
|
</div>
|
|
|
|
<!-- Unsectioned -->
|
|
|
|
<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()" />
|
|
|
|
<br />
|
2022-12-04 13:22:35 -06:00
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
id="cbxSmooth"
|
|
|
|
checked
|
|
|
|
onchange="changeSmoothRendering()" />
|
|
|
|
<label for="cbxSmooth">Smooth Rendering</label>
|
2022-11-29 20:08:43 -06:00
|
|
|
<!-- Save/load image section -->
|
|
|
|
<button type="button" class="collapsible">Save/Upscaling</button>
|
|
|
|
<div class="content">
|
|
|
|
<button onclick="downloadCanvas()">Save canvas</button>
|
|
|
|
<br />
|
2022-12-08 15:23:17 -06:00
|
|
|
<label>Choose upscaler</label>
|
|
|
|
<div id="upscaler-ac-select"></div>
|
2022-12-06 21:30:00 -06:00
|
|
|
<div id="upscaleX"></div>
|
2022-11-29 20:08:43 -06:00
|
|
|
<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 />
|
2022-12-01 20:31:49 -06:00
|
|
|
<button id="resetToDefaults" onclick="resetToDefaults()">
|
|
|
|
Reset to defaults
|
|
|
|
</button>
|
2022-12-24 08:56:30 -06:00
|
|
|
<button id="toggleDebugBtn" onclick="global.toggledebug()">
|
|
|
|
Toggle Debug
|
|
|
|
</button>
|
2022-12-01 20:31:49 -06:00
|
|
|
<br />
|
2022-11-29 20:08:43 -06:00
|
|
|
<span id="version">
|
|
|
|
<a href="https://github.com/zero01101/openOutpaint" target="_blank">
|
2022-12-23 17:45:17 -06:00
|
|
|
Alpha release v0.0.12.1
|
2022-11-29 20:08:43 -06:00
|
|
|
</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>
|
|
|
|
<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>
|
|
|
|
|
2022-12-04 05:00:39 -06:00
|
|
|
<!-- Layers -->
|
|
|
|
<div
|
|
|
|
id="ui-layers"
|
|
|
|
class="floating-window"
|
|
|
|
style="right: 10px; bottom: 10px">
|
|
|
|
<div class="draggable floating-window-title">Layers</div>
|
|
|
|
<div class="menu-container" style="min-width: 200px">
|
2022-12-04 13:22:35 -06:00
|
|
|
<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"
|
2022-12-05 20:22:19 -06:00
|
|
|
onclick="commands.runCommand('addLayer', 'Added Layer')"
|
2022-12-04 13:22:35 -06:00
|
|
|
class="ui icon button">
|
|
|
|
<div class="icon-file-plus"></div>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
title="Move Layer Up"
|
2022-12-05 20:22:19 -06:00
|
|
|
onclick="commands.runCommand('moveLayer', 'Moved Layer Up',{delta: 1})"
|
2022-12-04 13:22:35 -06:00
|
|
|
class="ui icon button">
|
|
|
|
<div class="icon-chevron-up"></div>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
title="Move Layer Down"
|
2022-12-05 20:22:19 -06:00
|
|
|
onclick="commands.runCommand('moveLayer', 'Moved Layer Down', {delta: -1})"
|
2022-12-04 13:22:35 -06:00
|
|
|
class="ui icon button">
|
|
|
|
<div class="icon-chevron-down"></div>
|
|
|
|
</button>
|
2022-12-05 20:22:19 -06:00
|
|
|
|
|
|
|
<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"
|
2022-12-06 18:05:43 -06:00
|
|
|
title="Delete Layer"
|
2022-12-05 20:22:19 -06:00
|
|
|
onclick="commands.runCommand('deleteLayer', 'Deleted Layer')"
|
|
|
|
class="ui icon button">
|
|
|
|
<div class="icon-file-x"></div>
|
|
|
|
</button>
|
2022-12-04 13:22:35 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-04 05:00:39 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-11-29 20:08:43 -06:00
|
|
|
<!-- Toolbar -->
|
|
|
|
<div
|
|
|
|
id="ui-toolbar"
|
|
|
|
class="floating-window toolbar"
|
2022-12-04 05:00:39 -06:00
|
|
|
style="right: 270px; top: 10px">
|
2022-11-29 20:08:43 -06:00
|
|
|
<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 -->
|
2022-11-29 20:54:09 -06:00
|
|
|
<div id="layer-render" class="layer-render-target"></div>
|
2022-11-29 20:08:43 -06:00
|
|
|
|
2022-12-04 13:22:35 -06:00
|
|
|
<!-- Overlay -->
|
|
|
|
<canvas id="layer-overlay" class="layer-overlay"></canvas>
|
|
|
|
|
2022-12-07 21:26:37 -06:00
|
|
|
<!-- 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>
|
2022-12-19 06:30:39 -06:00
|
|
|
<iframe id="page-overlay" src="pages/configuration.html"></iframe>
|
2022-12-07 21:26:37 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-12-27 15:08:06 -06:00
|
|
|
<!-- Basics -->
|
2022-12-28 23:39:32 -06:00
|
|
|
<script src="js/global.js?v=3da0b2e" type="text/javascript"></script>
|
2022-12-27 15:05:09 -06:00
|
|
|
|
2022-11-29 20:08:43 -06:00
|
|
|
<!-- Base Libs -->
|
2022-12-30 13:22:23 -06:00
|
|
|
<script src="js/lib/util.js?v=7f6847c" type="text/javascript"></script>
|
2022-12-28 19:52:14 -06:00
|
|
|
<script src="js/lib/events.js?v=2ab7933" type="text/javascript"></script>
|
|
|
|
<script src="js/lib/input.js?v=09298ac" type="text/javascript"></script>
|
|
|
|
<script src="js/lib/layers.js?v=a1f8aea" type="text/javascript"></script>
|
|
|
|
<script src="js/lib/commands.js?v=00464cb" type="text/javascript"></script>
|
2022-11-29 20:54:09 -06:00
|
|
|
|
2022-12-28 23:39:32 -06:00
|
|
|
<script src="js/lib/toolbar.js?v=8a08072" type="text/javascript"></script>
|
2022-12-30 05:27:08 -06:00
|
|
|
<script src="js/lib/ui.js?v=76ede2b" type="text/javascript"></script>
|
2022-11-29 20:54:09 -06:00
|
|
|
|
|
|
|
<script
|
2022-12-28 19:52:14 -06:00
|
|
|
src="js/initalize/layers.populate.js?v=c81f0a5"
|
2022-11-29 20:54:09 -06:00
|
|
|
type="text/javascript"></script>
|
|
|
|
|
2022-12-27 15:08:06 -06:00
|
|
|
<!-- Configuration -->
|
2022-12-28 19:52:14 -06:00
|
|
|
<script src="js/config.js?v=8da6a43" type="text/javascript"></script>
|
2022-12-27 15:08:06 -06:00
|
|
|
|
2022-11-29 20:08:43 -06:00
|
|
|
<!-- Content -->
|
2022-12-28 19:52:14 -06:00
|
|
|
<script src="js/prompt.js?v=7a1c68c" type="text/javascript"></script>
|
2022-12-30 05:27:08 -06:00
|
|
|
<script src="js/index.js?v=34359a1" type="text/javascript"></script>
|
2022-12-12 15:25:32 -06:00
|
|
|
|
2022-12-28 19:56:54 -06:00
|
|
|
<script
|
|
|
|
src="js/ui/floating/history.js?v=fc92d14"
|
|
|
|
type="text/javascript"></script>
|
|
|
|
<script
|
|
|
|
src="js/ui/floating/layers.js?v=486b9fc"
|
|
|
|
type="text/javascript"></script>
|
2022-11-29 20:08:43 -06:00
|
|
|
|
|
|
|
<!-- Load Tools -->
|
2022-12-28 19:56:54 -06:00
|
|
|
<script
|
2022-12-30 04:27:26 -06:00
|
|
|
src="js/ui/tool/generic.js?v=2bcd36d"
|
2022-12-28 19:56:54 -06:00
|
|
|
type="text/javascript"></script>
|
2022-12-15 06:43:26 -06:00
|
|
|
|
2022-12-30 22:29:01 -06:00
|
|
|
<script src="js/ui/tool/dream.js?v=2b099b5" type="text/javascript"></script>
|
2022-12-28 19:56:54 -06:00
|
|
|
<script
|
|
|
|
src="js/ui/tool/maskbrush.js?v=1e8a893"
|
|
|
|
type="text/javascript"></script>
|
|
|
|
<script
|
|
|
|
src="js/ui/tool/colorbrush.js?v=1bd7288"
|
|
|
|
type="text/javascript"></script>
|
|
|
|
<script
|
|
|
|
src="js/ui/tool/select.js?v=533feab"
|
|
|
|
type="text/javascript"></script>
|
2022-12-28 19:52:14 -06:00
|
|
|
<script src="js/ui/tool/stamp.js?v=81b8908" type="text/javascript"></script>
|
2022-12-28 19:56:54 -06:00
|
|
|
<script
|
|
|
|
src="js/ui/tool/interrogate.js?v=af51c4d"
|
|
|
|
type="text/javascript"></script>
|
2022-11-29 20:08:43 -06:00
|
|
|
|
2022-11-29 20:54:09 -06:00
|
|
|
<!-- Initialize -->
|
2022-12-01 15:10:30 -06:00
|
|
|
<script
|
2022-12-28 19:52:14 -06:00
|
|
|
src="js/initalize/shortcuts.populate.js?v=fd01c47"
|
2022-12-01 15:10:30 -06:00
|
|
|
type="text/javascript"></script>
|
2022-11-29 20:54:09 -06:00
|
|
|
<script
|
2022-12-28 19:52:14 -06:00
|
|
|
src="js/initalize/toolbar.populate.js?v=c1ca438"
|
2022-11-29 20:54:09 -06:00
|
|
|
type="text/javascript"></script>
|
|
|
|
<script
|
2022-12-28 19:52:14 -06:00
|
|
|
src="js/initalize/debug.populate.js?v=64ad17f"
|
2022-11-29 20:54:09 -06:00
|
|
|
type="text/javascript"></script>
|
2022-12-28 19:56:54 -06:00
|
|
|
<script
|
|
|
|
src="js/initalize/ui.populate.js?v=b59b288"
|
|
|
|
type="text/javascript"></script>
|
2022-12-19 06:30:39 -06:00
|
|
|
|
|
|
|
<!-- Deals with webui communication -->
|
2022-12-28 19:52:14 -06:00
|
|
|
<script src="js/webui.js?v=60a0a81" type="text/javascript"></script>
|
2022-11-29 20:08:43 -06:00
|
|
|
</body>
|
|
|
|
</html>
|