SD: Add prompt expansion warning. Disable quantization

3f026aea15b6181fac5edb1bc12ee39424981db2

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +3 -2Showing whitespace changes
public/scripts/extensions/stable-diffusion/settings.html+2 -1
@@ -29,7 +29,8 @@
29 </label>29 </label>
30 <label for="sd_expand" class="checkbox_label" data-i18n="[title]sd_expand" title="Automatically extend prompts using text generation model">30 <label for="sd_expand" class="checkbox_label" data-i18n="[title]sd_expand" title="Automatically extend prompts using text generation model">
31 <input id="sd_expand" type="checkbox" />31 <input id="sd_expand" type="checkbox" />
32 <span data-i18n="sd_expand_txt">Auto-enhance prompts</span>32 <span data-i18n="sd_expand_txt">Auto-extend prompts</span>
33 <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>
33 </label>34 </label>
34 <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).">35 <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).">
35 <input id="sd_snap" type="checkbox" />36 <input id="sd_snap" type="checkbox" />
src/transformers.mjs+1 -1
@@ -35,7 +35,7 @@ const tasks = {
35 defaultModel: 'Cohee/fooocus_expansion-onnx',35 defaultModel: 'Cohee/fooocus_expansion-onnx',
36 pipeline: null,36 pipeline: null,
37 configField: 'extras.promptExpansionModel',37 configField: 'extras.promptExpansionModel',
38 quantized: true,38 quantized: false,
39 },39 },
40 'automatic-speech-recognition': {40 'automatic-speech-recognition': {
41 defaultModel: 'Xenova/whisper-small',41 defaultModel: 'Xenova/whisper-small',