mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
Use metadata ip adapter (#4715)
* add control net to useRecallParams * got recall controlnets working * fix metadata viewer controlnet * fix type errors * fix controlnet metadata viewer * add ip adapter to metadata * added ip adapter to recall parameters * got ip adapter recall working, still need to fix type errors * fix type issues * clean up logs * python formatting * cleanup * fix(ui): only store `image_name` as ip adapter image * fix(ui): use nullish coalescing operator for numbers Need to use the nullish coalescing operator `??` instead of false-y coalescing operator `||` when the value being check is a number. This prevents unintended coalescing when the value is zero and therefore false-y. * feat(ui): fall back on default values for ip adapter metadata * fix(ui): remove unused schema * feat(ui): re-use existing schemas in metadata schema * fix(ui): do not disable invocationCache --------- Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
This commit is contained in:
@@ -2115,6 +2115,11 @@ export type components = {
|
||||
* @description The ControlNets used for inference
|
||||
*/
|
||||
controlnets: components["schemas"]["ControlField"][];
|
||||
/**
|
||||
* Loras
|
||||
* @description The LoRAs used for inference
|
||||
*/
|
||||
ipAdapters: components["schemas"]["IPAdapterField"][];
|
||||
/**
|
||||
* Loras
|
||||
* @description The LoRAs used for inference
|
||||
@@ -3178,7 +3183,7 @@ export type components = {
|
||||
* Image Encoder Model
|
||||
* @description The name of the CLIP image encoder model.
|
||||
*/
|
||||
image_encoder_model: components["schemas"]["CLIPVisionModelField"];
|
||||
image_encoder_model?: components["schemas"]["CLIPVisionModelField"];
|
||||
/**
|
||||
* Weight
|
||||
* @description The weight given to the ControlNet
|
||||
@@ -5814,6 +5819,11 @@ export type components = {
|
||||
* @description The LoRAs used for inference
|
||||
*/
|
||||
loras?: components["schemas"]["LoRAMetadataField"][];
|
||||
/**
|
||||
* Strength
|
||||
* @description The strength used for latents-to-latents
|
||||
*/
|
||||
ipAdapters?: components["schemas"]["IPAdapterField"][];
|
||||
/**
|
||||
* Strength
|
||||
* @description The strength used for latents-to-latents
|
||||
|
||||
Reference in New Issue
Block a user