From 6148bf8e109aedd1a95ab7d61d15b8246ad0ad61 Mon Sep 17 00:00:00 2001 From: tim h Date: Sat, 4 Feb 2023 15:25:53 -0600 Subject: [PATCH] ...is this even working? --- index.html | 2 +- js/ui/tool/dream.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 0b38969..aa345dc 100644 --- a/index.html +++ b/index.html @@ -433,7 +433,7 @@ src="js/ui/tool/generic.js?v=3e678e0" type="text/javascript"> - + diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index 457d7f2..3f6055d 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -1049,6 +1049,7 @@ const dream_generate_callback = async (bb, resolution, state) => { ); request.mask = maskCanvas.toDataURL(); request.inpainting_fill = stableDiffusionData.outpainting_fill; + request.image_cfg_scale = stableDiffusionData.image_cfg_scale; // Dream _generate("img2img", request, bb, { @@ -1129,6 +1130,7 @@ const dream_img2img_callback = (bb, resolution, state) => { request.denoising_strength = state.denoisingStrength; request.inpainting_fill = state.inpainting_fill ?? 1; //let's see how this works //1; // For img2img use original + request.image_cfg_scale = state.image_cfg_scale ?? 0.5; // what am i even doing // Load prompt (maybe we should add some events so we don't have to do this) request.prompt = document.getElementById("prompt").value;