add controlnet inpainting
This commit is contained in:
@@ -87,6 +87,12 @@ export default async function inpaint(
|
||||
fd.append('p2pImageGuidanceScale', settings.p2pImageGuidanceScale.toString())
|
||||
fd.append('p2pGuidanceScale', settings.p2pGuidanceScale.toString())
|
||||
|
||||
// ControlNet
|
||||
fd.append(
|
||||
'controlnet_conditioning_scale',
|
||||
settings.controlnetConditioningScale.toString()
|
||||
)
|
||||
|
||||
if (sizeLimit === undefined) {
|
||||
fd.append('sizeLimit', '1080')
|
||||
} else {
|
||||
@@ -116,6 +122,12 @@ export function getIsDisableModelSwitch() {
|
||||
})
|
||||
}
|
||||
|
||||
export function getIsControlNet() {
|
||||
return fetch(`${API_ENDPOINT}/is_controlnet`, {
|
||||
method: 'GET',
|
||||
})
|
||||
}
|
||||
|
||||
export function getEnableFileManager() {
|
||||
return fetch(`${API_ENDPOINT}/is_enable_file_manager`, {
|
||||
method: 'GET',
|
||||
|
||||
Reference in New Issue
Block a user