chore: ruff and lint fixes

This commit is contained in:
blessedcoolant 2024-04-03 20:38:29 +05:30
parent cf88bd3294
commit 5f01de1993
2 changed files with 4 additions and 1 deletions

View File

@ -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:

View File

@ -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,