⚙️ Inference parameters
Depending on the inference type, different parameters can or must be provided:
non-controlnet types
type | txt2img | txt2img-ipadapter | img2img | img2img-ipadapter | inpaint | inpaint-ipadapter | reference |
---|---|---|---|---|---|---|---|
prompt | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
negativePrompt | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
numSamples | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
guidance | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
numInferenceSteps | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
seed | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
width | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
height | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
qualityBoost qualityBoostScale/qualityBoostStrength | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
tokenMerging | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
scheduler (more details) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
image | ❌ | ❌ | ✅ (required) | ✅ (required) | ✅ (required) | ✅ (required) | ✅ (required) |
strength | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ |
mask | ❌ | ❌ | ❌ | ❌ | ✅ (required) | ✅ (required) | ❌ |
referenceAttn referenceAdain styleFidelity | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
ipAdapterScale ipAdapterImage | ❌ | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ |
controlnet types
type | controlnet | controlnet-ipadapter | controlnet-img2im2 | controlnet-reference | controlnet-inpaint | controlnet-inpaint-ipadapter |
---|---|---|---|---|---|---|
prompt | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
negativePrompt | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
numSamples | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
guidance | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
numInferenceSteps | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
seed | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
width | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
height | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
qualityBoost qualityBoostScale/qualityBoostStrength | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
tokenMerging | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
scheduler (more details) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
image | ❌ | ❌ | ✅ (required) | ✅ (required) | ✅ (required) | ✅ (required) |
strength | ❌ | ❌ | ✅ | ❌ | ✅ | ✅ |
mask | ❌ | ❌ | ❌ | ❌ | ✅ (required) | ✅ (required) |
disableMerging | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
controlImage | ✅ (required) | ✅ (required) | ✅ (required) | ✅ (required) | ❌ | ❌ |
modality | ✅ (required) | ✅ (required) | ✅ (required) | ✅ (required) | ❌ | ❌ |
disableModalityDetection | ✅ | ✅ (required) | ✅ | ✅ | ❌ | ❌ |
referenceAttn referenceAdain styleFidelity | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ |
ipAdapterScale ipAdapterImage | ❌ | ✅ | ❌ | ❌ | ❌ | ✅ |
The prompt
parameter can be empty.
In addition to the preceding parameters, you can request the generation of intermediate images. The processing will be slightly slower. To do so, please set the intermediateImages
parameter to True
.
Updated 10 months ago