From 96d944a40c9759d9efd3fa21e6ab7a8fb414a634 Mon Sep 17 00:00:00 2001 From: Qing Date: Mon, 17 Mar 2025 16:13:00 +0800 Subject: [PATCH] update --- .../components/SidePanel/DiffusionOptions.tsx | 207 +++++++++--------- 1 file changed, 109 insertions(+), 98 deletions(-) diff --git a/web_app/src/components/SidePanel/DiffusionOptions.tsx b/web_app/src/components/SidePanel/DiffusionOptions.tsx index 6e969bf..5fa2053 100644 --- a/web_app/src/components/SidePanel/DiffusionOptions.tsx +++ b/web_app/src/components/SidePanel/DiffusionOptions.tsx @@ -441,28 +441,30 @@ const DiffusionOptions = () => { toolTip={toolTip} // disabled={disable} /> - - updateSettings({ sdStrength: vals[0] / 100 }) - } - // disabled={disable} - /> - { - updateSettings({ sdStrength: val }) - }} - // disabled={disable} - /> +
+ + updateSettings({ sdStrength: vals[0] / 100 }) + } + // disabled={disable} + /> + { + updateSettings({ sdStrength: val }) + }} + // disabled={disable} + /> +
) } @@ -632,24 +634,27 @@ const DiffusionOptions = () => { text="Steps" toolTip="The number of denoising steps. More denoising steps usually lead to a higher quality image at the expense of slower inference." /> - updateSettings({ sdSteps: vals[0] })} - /> - { - updateSettings({ sdSteps: val }) - }} - /> + +
+ updateSettings({ sdSteps: vals[0] })} + /> + { + updateSettings({ sdSteps: val }) + }} + /> +
) } @@ -662,26 +667,28 @@ const DiffusionOptions = () => { url="https://huggingface.co/docs/diffusers/main/en/using-diffusers/inpaint#guidance-scale" toolTip="Guidance scale affects how aligned the text prompt and generated image are. Higher value means the prompt and generated image are closely aligned, so the output is a stricter interpretation of the prompt" /> - - updateSettings({ sdGuidanceScale: vals[0] / 100 }) - } - /> - { - updateSettings({ sdGuidanceScale: val }) - }} - /> +
+ + updateSettings({ sdGuidanceScale: vals[0] / 100 }) + } + /> + { + updateSettings({ sdGuidanceScale: val }) + }} + /> +
) } @@ -758,24 +765,26 @@ const DiffusionOptions = () => { text="Mask blur" toolTip="How much to blur the mask before processing, in pixels. Make the generated inpainting boundaries appear more natural." /> - updateSettings({ sdMaskBlur: vals[0] })} - /> - { - updateSettings({ sdMaskBlur: value }) - }} - /> +
+ updateSettings({ sdMaskBlur: vals[0] })} + /> + { + updateSettings({ sdMaskBlur: value }) + }} + /> +
@@ -814,26 +823,28 @@ const DiffusionOptions = () => { text="Mask OP" toolTip="Expand or shrink mask. Using the slider to adjust the kernel size for dilation or erosion." /> - - updateSettings({ adjustMaskKernelSize: vals[0] }) - } - /> - { - updateSettings({ adjustMaskKernelSize: val }) - }} - /> +
+ + updateSettings({ adjustMaskKernelSize: vals[0] }) + } + /> + { + updateSettings({ adjustMaskKernelSize: val }) + }} + /> +