mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore: ruff and lint fixes
This commit is contained in:
parent
cf88bd3294
commit
5f01de1993
@ -707,7 +707,9 @@ class ControlNetFolderProbe(FolderProbeBase):
|
|||||||
else (
|
else (
|
||||||
BaseModelType.StableDiffusion2
|
BaseModelType.StableDiffusion2
|
||||||
if dimension == 1024
|
if dimension == 1024
|
||||||
else BaseModelType.StableDiffusionXL if dimension == 2048 else None
|
else BaseModelType.StableDiffusionXL
|
||||||
|
if dimension == 2048
|
||||||
|
else None
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
if not base_model:
|
if not base_model:
|
||||||
|
@ -372,6 +372,7 @@ const parseIPAdapter: MetadataParseFunc<IPAdapterConfigMetadata> = async (metada
|
|||||||
type: 'ip_adapter',
|
type: 'ip_adapter',
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
model: zModelIdentifierField.parse(ipAdapterModel),
|
model: zModelIdentifierField.parse(ipAdapterModel),
|
||||||
|
clipVisionModel: 'ViT-H',
|
||||||
controlImage: image?.image_name ?? null,
|
controlImage: image?.image_name ?? null,
|
||||||
weight: weight ?? initialIPAdapter.weight,
|
weight: weight ?? initialIPAdapter.weight,
|
||||||
beginStepPct: begin_step_percent ?? initialIPAdapter.beginStepPct,
|
beginStepPct: begin_step_percent ?? initialIPAdapter.beginStepPct,
|
||||||
|
Loading…
Reference in New Issue
Block a user