Skip to content

Commit 58fc990

Browse files
committed
Use a range slider for denoise
1 parent d1825a2 commit 58fc990

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

AiServer/wwwroot/css/app.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3077,6 +3077,12 @@ select{
30773077
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
30783078
}
30793079

3080+
.\!shadow-none {
3081+
--tw-shadow: 0 0 #0000 !important;
3082+
--tw-shadow-colored: 0 0 #0000 !important;
3083+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
3084+
}
3085+
30803086
.\!outline-none {
30813087
outline: 2px solid transparent !important;
30823088
outline-offset: 2px !important;

AiServer/wwwroot/mjs/components/ImageToImage.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default {
4141
</div>
4242
4343
<div class="col-span-6 sm:col-span-2">
44-
<TextInput type="number" id="denoise" v-model="request.denoise" min="0" step="0.01" required />
44+
<TextInput type="range" inputClass="!shadow-none" id="denoise" v-model="request.denoise" min="0" max="1" step="0.01" :label="'Creativity (denoise) &nbsp; ' + (Math.floor(request.denoise * 100)) + '%'" required />
4545
</div>
4646
<div class="col-span-6 sm:col-span-4">
4747
<TextInput id="negativePrompt" v-model="request.negativePrompt" required placeholder="Negative Prompt" />
@@ -141,7 +141,7 @@ export default {
141141
const ui = useUiLayout(refUi)
142142

143143
const storage = new ThreadStorage(`img2img`, {
144-
denoise: '',
144+
denoise: 0.5,
145145
positivePrompt: "",
146146
negativePrompt: '(nsfw),(explicit),(gore),(violence),(blood)',
147147
width: 1024,

0 commit comments

Comments
 (0)