From 755304059515f34c21cb1752ed7b09a57d9024ff Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sun, 19 Mar 2023 00:35:25 -0500 Subject: [PATCH] fix(gui): split base models and additional options --- gui/src/components/control/ModelControl.tsx | 206 ++++++++++---------- 1 file changed, 105 insertions(+), 101 deletions(-) diff --git a/gui/src/components/control/ModelControl.tsx b/gui/src/components/control/ModelControl.tsx index 4fe9f6bd..01ec3181 100644 --- a/gui/src/components/control/ModelControl.tsx +++ b/gui/src/components/control/ModelControl.tsx @@ -26,111 +26,115 @@ export function ModelControl() { staleTime: STALE_TIME, }); - return - { - setModel({ - platform, - }); - }} - /> - result.diffusion, - }} - value={params.model} - onChange={(model) => { - setModel({ - model, - }); - }} - /> - result.upscaling, - }} - value={params.upscaling} - onChange={(upscaling) => { - setModel({ - upscaling, - }); - }} - /> - result.correction, - }} - value={params.correction} - onChange={(correction) => { - setModel({ - correction, - }); - }} - /> - { + return + + { setModel({ - lpw: params.lpw === false, + platform, }); }} - />} - /> - result.networks.filter((network) => network.type === 'inversion').map((network) => network.name), - }} - onSelect={(name) => { - const current = state.getState(); - const { prompt } = current.txt2img; + /> + result.diffusion, + }} + value={params.model} + onChange={(model) => { + setModel({ + model, + }); + }} + /> + result.upscaling, + }} + value={params.upscaling} + onChange={(upscaling) => { + setModel({ + upscaling, + }); + }} + /> + result.correction, + }} + value={params.correction} + onChange={(correction) => { + setModel({ + correction, + }); + }} + /> + + + { + setModel({ + lpw: params.lpw === false, + }); + }} + />} + /> + result.networks.filter((network) => network.type === 'inversion').map((network) => network.name), + }} + onSelect={(name) => { + const current = state.getState(); + const { prompt } = current.txt2img; - current.setTxt2Img({ - prompt: ` ${prompt}`, - }); - }} - /> - result.networks.filter((network) => network.type === 'lora').map((network) => network.name), - }} - onSelect={(name) => { - const current = state.getState(); - const { prompt } = current.txt2img; + current.setTxt2Img({ + prompt: ` ${prompt}`, + }); + }} + /> + result.networks.filter((network) => network.type === 'lora').map((network) => network.name), + }} + onSelect={(name) => { + const current = state.getState(); + const { prompt } = current.txt2img; - current.setTxt2Img({ - prompt: ` ${prompt}`, - }); - }} - /> + current.setTxt2Img({ + prompt: ` ${prompt}`, + }); + }} + /> + ; }