add back croper to paint_by_example model

This commit is contained in:
Qing 2023-01-11 21:17:17 +08:00
parent cc67436cbf
commit c82e20cbe0

View File

@ -68,6 +68,24 @@ const PESidePanel = () => {
</PopoverPrimitive.Trigger> </PopoverPrimitive.Trigger>
<PopoverPrimitive.Portal> <PopoverPrimitive.Portal>
<PopoverPrimitive.Content className="side-panel-content"> <PopoverPrimitive.Content className="side-panel-content">
<SettingBlock
title="Croper"
input={
<Switch
checked={setting.showCroper}
onCheckedChange={value => {
setSettingState(old => {
return { ...old, showCroper: value }
})
}}
>
<SwitchThumb />
</Switch>
}
/>
<ImageResizeScale />
<NumberInputSetting <NumberInputSetting
title="Steps" title="Steps"
width={INPUT_WIDTH} width={INPUT_WIDTH}
@ -81,8 +99,6 @@ const PESidePanel = () => {
}} }}
/> />
<ImageResizeScale />
<NumberInputSetting <NumberInputSetting
title="Guidance Scale" title="Guidance Scale"
width={INPUT_WIDTH} width={INPUT_WIDTH}