Stable Diffusion: finer LoRA strength steps, collapsible reference image library

0fd5bf93c5287da103e9ef859fea7bf483b164fe

permissionBRICK <40219477+permissionBRICK@users.noreply.github.com>

2 files changed, +20 -13Ignore whitespace
public/scripts/extensions/stable-diffusion/index.js+1 -1
@@ -384,7 +384,7 @@ const defaultSettings = {
384 lora_strength: 1.0,384 lora_strength: 1.0,
385 lora_strength_min: 0.0,385 lora_strength_min: 0.0,
386 lora_strength_max: 2.0,386 lora_strength_max: 2.0,
387 lora_strength_step: 0.05,387 lora_strength_step: 0.01,
388388
389 // Per-workflow remembered selections ({ [workflow]: { model, lora } });389 // Per-workflow remembered selections ({ [workflow]: { model, lora } });
390 // part of preset snapshots, so each chain provider keeps its own map.390 // part of preset snapshots, so each chain provider keeps its own map.
public/scripts/extensions/stable-diffusion/settings.html+19 -12
@@ -59,19 +59,26 @@
59 </label>59 </label>
60 <small data-i18n="sd_fallback_enabled_small">When enabled, each generation tries the chain presets top to bottom until one succeeds. Unreachable local backends (e.g. a powered-off ComfyUI machine) are skipped after about a second.</small>60 <small data-i18n="sd_fallback_enabled_small">When enabled, each generation tries the chain presets top to bottom until one succeeds. Unreachable local backends (e.g. a powered-off ComfyUI machine) are skipped after about a second.</small>
61 <hr>61 <hr>
62 <h4 data-i18n="Reference Image Library">Reference Image Library</h4>62 <div class="inline-drawer">
63 <label for="sd_ref_images_enabled" class="checkbox_label" data-i18n="[title]sd_ref_images_enabled" title="When the ComfyUI workflow contains a %reference_image% placeholder, the image-prompt LLM picks the best-fitting image from this library and it is passed to the workflow as Base64.">63 <div class="inline-drawer-toggle inline-drawer-header">
64 <input id="sd_ref_images_enabled" type="checkbox" />64 <b data-i18n="Reference Image Library">Reference Image Library</b>
65 <span data-i18n="sd_ref_images_enabled_txt">Use tagged reference images</span>65 <div class="inline-drawer-icon fa-solid fa-circle-chevron-down down"></div>
66 </label>66 </div>
67 <small data-i18n="sd_ref_images_small">Upload images and tag them with a short name plus a description. If the active ComfyUI workflow uses the &quot;%reference_image%&quot; placeholder, the best-fitting image for the scene is selected automatically and injected like %user_avatar% / %char_avatar%.</small>67 <div class="inline-drawer-content">
68 <div id="sd_ref_images_list" class="flex-container flexFlowColumn marginTopBot5"></div>68 <label for="sd_ref_images_enabled" class="checkbox_label" data-i18n="[title]sd_ref_images_enabled" title="When the ComfyUI workflow contains a %reference_image% placeholder, the image-prompt LLM picks the best-fitting image from this library and it is passed to the workflow as Base64.">
69 <div class="flex-container marginTopBot5">69 <input id="sd_ref_images_enabled" type="checkbox" />
70 <div id="sd_ref_images_add" class="menu_button menu_button_icon">70 <span data-i18n="sd_ref_images_enabled_txt">Use tagged reference images</span>
71 <i class="fa-solid fa-plus"></i>71 </label>
72 <span data-i18n="Add reference image">Add reference image</span>72 <small data-i18n="sd_ref_images_small">Upload images and tag them with a short name plus a description. If the active ComfyUI workflow uses the &quot;%reference_image%&quot; placeholder, the best-fitting image for the scene is selected automatically and injected like %user_avatar% / %char_avatar%.</small>
73 <div id="sd_ref_images_list" class="flex-container flexFlowColumn marginTopBot5"></div>
74 <div class="flex-container marginTopBot5">
75 <div id="sd_ref_images_add" class="menu_button menu_button_icon">
76 <i class="fa-solid fa-plus"></i>
77 <span data-i18n="Add reference image">Add reference image</span>
78 </div>
79 <input id="sd_ref_images_file" type="file" accept="image/png, image/jpeg, image/webp" multiple hidden />
80 </div>
73 </div>81 </div>
74 <input id="sd_ref_images_file" type="file" accept="image/png, image/jpeg, image/webp" multiple hidden />
75 </div>82 </div>
76 <hr>83 <hr>
77 <h4 data-i18n="RunPod On-Demand Pod">RunPod On-Demand Pod</h4>84 <h4 data-i18n="RunPod On-Demand Pod">RunPod On-Demand Pod</h4>