make brushnet work
This commit is contained in:
@@ -78,6 +78,9 @@ export default async function inpaint(
|
||||
controlnet_method: settings.controlnetMethod
|
||||
? settings.controlnetMethod
|
||||
: "",
|
||||
enable_brushnet: settings.enableBrushNet,
|
||||
brushnet_method: settings.brushnetMethod ? settings.brushnetMethod : "",
|
||||
brushnet_conditioning_scale: settings.brushnetConditioningScale,
|
||||
powerpaint_task: settings.showExtender
|
||||
? PowerPaintTask.outpainting
|
||||
: settings.powerpaintTask,
|
||||
|
||||
@@ -99,6 +99,11 @@ export type Settings = {
|
||||
controlnetConditioningScale: number
|
||||
controlnetMethod: string
|
||||
|
||||
// BrushNet
|
||||
enableBrushNet: boolean
|
||||
brushnetMethod: string
|
||||
brushnetConditioningScale: number
|
||||
|
||||
enableLCMLora: boolean
|
||||
enableFreeu: boolean
|
||||
freeuConfig: FreeuConfig
|
||||
@@ -306,15 +311,16 @@ const defaultValues: AppState = {
|
||||
path: "lama",
|
||||
model_type: "inpaint",
|
||||
support_controlnet: false,
|
||||
support_brushnet: false,
|
||||
support_strength: false,
|
||||
support_outpainting: false,
|
||||
controlnets: [],
|
||||
brushnets: [],
|
||||
support_freeu: false,
|
||||
support_lcm_lora: false,
|
||||
is_single_file_diffusers: false,
|
||||
need_prompt: false,
|
||||
},
|
||||
enableControlnet: false,
|
||||
showCropper: false,
|
||||
showExtender: false,
|
||||
extenderDirection: ExtenderDirection.xy,
|
||||
@@ -339,8 +345,12 @@ const defaultValues: AppState = {
|
||||
sdMatchHistograms: false,
|
||||
sdScale: 1.0,
|
||||
p2pImageGuidanceScale: 1.5,
|
||||
controlnetConditioningScale: 0.4,
|
||||
enableControlnet: false,
|
||||
controlnetMethod: "lllyasviel/control_v11p_sd15_canny",
|
||||
controlnetConditioningScale: 0.4,
|
||||
enableBrushNet: false,
|
||||
brushnetMethod: "random_mask",
|
||||
brushnetConditioningScale: 1.0,
|
||||
enableLCMLora: false,
|
||||
enableFreeu: false,
|
||||
freeuConfig: { s1: 0.9, s2: 0.2, b1: 1.2, b2: 1.4 },
|
||||
@@ -1076,7 +1086,7 @@ export const useStore = createWithEqualityFn<AppState & AppAction>()(
|
||||
})),
|
||||
{
|
||||
name: "ZUSTAND_STATE", // name of the item in the storage (must be unique)
|
||||
version: 1,
|
||||
version: 2,
|
||||
partialize: (state) =>
|
||||
Object.fromEntries(
|
||||
Object.entries(state).filter(([key]) =>
|
||||
|
||||
@@ -48,7 +48,9 @@ export interface ModelInfo {
|
||||
support_strength: boolean
|
||||
support_outpainting: boolean
|
||||
support_controlnet: boolean
|
||||
support_brushnet: boolean
|
||||
controlnets: string[]
|
||||
brushnets: string[]
|
||||
support_freeu: boolean
|
||||
support_lcm_lora: boolean
|
||||
need_prompt: boolean
|
||||
|
||||
Reference in New Issue
Block a user