|
6 | 6 | <div class="l_button" style="">Options</div> |
7 | 7 | </template> |
8 | 8 |
|
9 | | - <b-dropdown-form style="min-width: 350px;max-height: calc(100vh - 250px);overflow-y: scroll;"> |
| 9 | + <b-dropdown-form style="min-width: 350px;max-height: calc(100vh - 300px); overflow-y: scroll;"> |
| 10 | + <br> |
10 | 11 | <div style="display: flex;flex-wrap: wrap;justify-content: center;gap: 15px;"> |
11 | 12 | <span v-if="!elements_hidden.includes('inp_img_strength')"> |
12 | 13 | <div style="display: flex;flex-direction: column;width: 300px;"> |
13 | 14 | <div class="options_title_box"> |
14 | 15 | <span>Input Strength</span> |
15 | | - <span class="options_desc">How closely to follow your prompt (lower |
16 | | - numbers give the AI more creativity, in percent)</span> |
| 16 | + <span class="options_desc">How closely to stick to the input image. (lower |
| 17 | + numbers makes the AI do more change)</span> |
17 | 18 | </div> |
18 | | - <input type="range" min="10" max="90" value="75" step='0.01' class="slider" |
| 19 | + <input type="range" min="10" max="90" :value="options_model_values.inp_img_strength*100" step='0.01' class="slider" |
19 | 20 | @input="SetStrength" list='tickmarks'> |
20 | 21 | <div id="tickmarks"> |
21 | 22 | <p>10</p> |
|
173 | 174 | <span class="options_desc">How closely to follow your prompt (lower |
174 | 175 | numbers give the AI more creativity)</span> |
175 | 176 | </div> |
176 | | - <input type="range" min="0" max="20" value="7.5" step='0.01' class="slider" |
| 177 | + <input type="range" min="0" max="20" v-model="options_model_values.guidence_scale" step='0.01' class="slider" |
177 | 178 | @input="SetGuidenceScale" list='tickmarks'> |
178 | 179 | <div id="tickmarks"> |
179 | 180 | <p>0</p> |
@@ -247,12 +248,12 @@ export default { |
247 | 248 | SetStrength(e) { |
248 | 249 | var value = (e.target.value - e.target.min) / (e.target.max - e.target.min) * 100 |
249 | 250 | e.target.style.background = 'linear-gradient(to right, var(--slider-progress) 0%, var(--slider-progress) ' + value + '%, var(--slider-progress_end) ' + value + '%, var(--slider-progress_end) 100%)' |
250 | | - this.options_model_values.strength = Number(e.target.value / 100); |
| 251 | + this.options_model_values.inp_img_strength = Number(e.target.value / 100); |
251 | 252 | }, |
252 | 253 | SetGuidenceScale(e) { |
253 | 254 | var value = (e.target.value - e.target.min) / (e.target.max - e.target.min) * 100 |
254 | 255 | e.target.style.background = 'linear-gradient(to right, var(--slider-progress) 0%, var(--slider-progress) ' + value + '%, var(--slider-progress_end) ' + value + '%, var(--slider-progress_end) 100%)' |
255 | | - this.options_model_values.guidance_scale = Number(e.target.value) |
| 256 | + // this.options_model_values.guidence_scale = Number(e.target.value) |
256 | 257 | } |
257 | 258 | }, |
258 | 259 | } |
|
0 commit comments