Appendix

Appendix

This document concentrates on the preset values of the various parameters. If you are using legacy APIs, please go to legacy API references.

Main Model

Supported Samplers

Sampler Name
Euler a
Euler
LMS
Heun
DPM2
DPM2 a
DPM++ 2S a
DPM++ 2M
DPM++ SDE
DPM++ 2M SDE
DPM fast
DPM adaptive
LMS Karras
DPM2 Karras
DPM2 a Karras
DPM++ 2S a Karras
DPM++ 2M Karras
DPM++ SDE Karras
DPM++ 2M SDE Karras
DDIM
PLMS
UniPC

ControlNet

ControlNet Parameters

Parameter NameTypeDescriptionRequired
ImageIndexintThe image is indexed in ImageAndMaskList, starting from 0
MaskIndexintThe image is indexed in ImageAndMaskList, starting from 0. Masks can be drawn independently or obtained through the Remove-Background or Content Extraction APIs.
InvertMaskboolDo you need to invert the mask
PreProcessorPreProcessorPreProcessor
ControlModelControlModelControlNet model

PreProcessor

Parameter NameTypeDescriptionRequired
ModelCodestringprocessor Code
InferenceParamsPreProcessorInferenceParamsProcessor Inference parameters

ControlModel

Parameter NameTypeDescriptionRequired
ModelCodestringControlModel model Code
InferenceParamsControlNetModelInferenceParamsControlModel model Inference parameters

PreProcessorInferenceParams

💡

Different preprocessors require different parameters. Please fill in the parameters according to the preprocessor parameters returned by ListControlNets.

Parameter NameTypeDescriptionRequired
ResolutionintResolution(64~2048)
BlurSigmaintMask blur radius(1~64)
CannyLowThresholdint1~255 default:100
CannyHighThresholdint1~255 default:200
DepthRemoveNearfloat0~100 default:0
DepthRemoveBackgroundfloat0~100 default:0
MaxFacesfloat1~10 默认值:1
MinFaceConfidencefloat0.01~1 default:0.5
MLSDValueThresholdfloat0.01~2 default:0.1
MLSDDistanceThresholdfloat0.01~20 default:0.1
NormalBackgroundThresholdfloat0~1 default:0.4
ReferenceStyleFidelityfloat0~1 default:0.5
ScribbleXDoGThresholdint1~64 default:32
BinarizationThresholdint0~255 default:127
TileVariationint3~32 default:8
TileSharpnessfloat0~2 default:1
TileDownSamplingRatefloat1~8 default:1

ControlNetModelInferenceParams

Parameter NameTypeDescriptionRequired
ControlWeightfloatControlNet Weight(0~2) default:1
StartingStepfloatStart intervention steps(0~1) 默认值:0
EndingStepfloatEnd intervention steps(0~1) 默认值:1
ControlModestringControl mode, reference value: Balanced, MyPromptIsMoreImportant, ControlNetIsMoreImportant Default value: Balanced
ResizeModestringScaling mode, reference values: JustResize, CropAndResize, ResizeAndFill Default value: ResizeAndFill