SD: Add prompt expansion warning. Disable quantization

This commit is contained in:
Cohee
2024-08-23 19:57:25 +03:00
parent c84a685e7b
commit 3f026aea15
2 changed files with 3 additions and 2 deletions

View File

@@ -29,7 +29,8 @@
</label>
<label for="sd_expand" class="checkbox_label" data-i18n="[title]sd_expand" title="Automatically extend prompts using text generation model">
<input id="sd_expand" type="checkbox" />
<span data-i18n="sd_expand_txt">Auto-enhance prompts</span>
<span data-i18n="sd_expand_txt">Auto-extend prompts</span>
<span class="right_menu_button fa-solid fa-triangle-exclamation" data-i18n="[title]sd_expand_warning" title="May produce unexpected results. Manual prompt editing is recommended."></span>
</label>
<label for="sd_snap" class="checkbox_label" data-i18n="[title]sd_snap" title="Snap generation requests with a forced aspect ratio (portraits, backgrounds) to the nearest known resolution, while trying to preserve the absolute pixel counts (recommended for SDXL).">
<input id="sd_snap" type="checkbox" />

View File

@@ -35,7 +35,7 @@ const tasks = {
defaultModel: 'Cohee/fooocus_expansion-onnx',
pipeline: null,
configField: 'extras.promptExpansionModel',
quantized: true,
quantized: false,
},
'automatic-speech-recognition': {
defaultModel: 'Xenova/whisper-small',