diff --git a/invokeai/frontend/web/src/features/system/util/calculateStepPercentage.ts b/invokeai/frontend/web/src/features/system/util/calculateStepPercentage.ts deleted file mode 100644 index 70902e4a92..0000000000 --- a/invokeai/frontend/web/src/features/system/util/calculateStepPercentage.ts +++ /dev/null @@ -1,13 +0,0 @@ -export const calculateStepPercentage = (step: number, total_steps: number, order: number) => { - if (total_steps === 0) { - return 0; - } - - // we add one extra to step so that the progress bar will be full when denoise completes - - if (order === 2) { - return Math.floor((step + 1 + 1) / 2) / Math.floor((total_steps + 1) / 2); - } - - return (step + 1 + 1) / (total_steps + 1); -}; diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts index 767fa4f4b7..2cfcf79b8f 100644 --- a/invokeai/frontend/web/src/services/api/schema.ts +++ b/invokeai/frontend/web/src/services/api/schema.ts @@ -4273,7 +4273,7 @@ export type components = { * @description The nodes in this graph */ nodes: { - [key: string]: components["schemas"]["IdealSizeInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["ZoeDepthImageProcessorInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["HedImageProcessorInvocation"] | components["schemas"]["AddInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["MidasDepthImageProcessorInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["LineartAnimeImageProcessorInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["MlsdImageProcessorInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["NormalbaeImageProcessorInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["StringInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["FloatInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["TileResamplerProcessorInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["StepParamEasingInvocation"] | components["schemas"]["ColorMapImageProcessorInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["LineartImageProcessorInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["LeresImageProcessorInvocation"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["MediapipeFaceProcessorInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CannyImageProcessorInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["ContentShuffleImageProcessorInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["PidiImageProcessorInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["SegmentAnythingProcessorInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["DepthAnythingImageProcessorInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["DWOpenposeImageProcessorInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["NoiseInvocation"]; + [key: string]: components["schemas"]["LineartAnimeImageProcessorInvocation"] | components["schemas"]["StringInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["MlsdImageProcessorInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["NormalbaeImageProcessorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["LineartImageProcessorInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["IterateInvocation"] | components["schemas"]["TileResamplerProcessorInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["ColorMapImageProcessorInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["CannyImageProcessorInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["LeresImageProcessorInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["MediapipeFaceProcessorInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["ContentShuffleImageProcessorInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["PidiImageProcessorInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["SegmentAnythingProcessorInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["DepthAnythingImageProcessorInvocation"] | components["schemas"]["StepParamEasingInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["DWOpenposeImageProcessorInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["FloatInvocation"] | components["schemas"]["AddInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["HedImageProcessorInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["MidasDepthImageProcessorInvocation"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ZoeDepthImageProcessorInvocation"]; }; /** * Edges @@ -4310,7 +4310,7 @@ export type components = { * @description The results of node executions */ results: { - [key: string]: components["schemas"]["StringOutput"] | components["schemas"]["ColorCollectionOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["ConditioningCollectionOutput"] | components["schemas"]["StringPosNegOutput"] | components["schemas"]["SeamlessModeOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["TileToPropertiesOutput"] | components["schemas"]["CalculateImageTilesOutput"] | components["schemas"]["ModelIdentifierOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["SchedulerOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["ConditioningOutput"] | components["schemas"]["UNetOutput"] | components["schemas"]["MaskOutput"] | components["schemas"]["PairTileImageOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["SDXLModelLoaderOutput"] | components["schemas"]["CollectInvocationOutput"] | components["schemas"]["StringCollectionOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["CLIPOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["MetadataItemOutput"] | components["schemas"]["VAEOutput"] | components["schemas"]["FaceOffOutput"] | components["schemas"]["SDXLRefinerModelLoaderOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["DenoiseMaskOutput"] | components["schemas"]["SDXLLoRALoaderOutput"] | components["schemas"]["BooleanOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["BooleanCollectionOutput"] | components["schemas"]["CLIPSkipInvocationOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["String2Output"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["MetadataOutput"] | components["schemas"]["FaceMaskOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["T2IAdapterOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["ColorOutput"] | components["schemas"]["GradientMaskOutput"]; + [key: string]: components["schemas"]["ConditioningCollectionOutput"] | components["schemas"]["SDXLModelLoaderOutput"] | components["schemas"]["FaceMaskOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["FaceOffOutput"] | components["schemas"]["ConditioningOutput"] | components["schemas"]["MaskOutput"] | components["schemas"]["UNetOutput"] | components["schemas"]["ModelIdentifierOutput"] | components["schemas"]["SDXLRefinerModelLoaderOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["StringCollectionOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["MetadataItemOutput"] | components["schemas"]["T2IAdapterOutput"] | components["schemas"]["SchedulerOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["SDXLLoRALoaderOutput"] | components["schemas"]["CLIPOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["BooleanOutput"] | components["schemas"]["BooleanCollectionOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["DenoiseMaskOutput"] | components["schemas"]["VAEOutput"] | components["schemas"]["String2Output"] | components["schemas"]["TileToPropertiesOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["MetadataOutput"] | components["schemas"]["PairTileImageOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["CollectInvocationOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["CLIPSkipInvocationOutput"] | components["schemas"]["StringOutput"] | components["schemas"]["CalculateImageTilesOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["ColorCollectionOutput"] | components["schemas"]["ColorOutput"] | components["schemas"]["StringPosNegOutput"] | components["schemas"]["SeamlessModeOutput"]; }; /** * Errors @@ -11987,144 +11987,144 @@ export type components = { */ UIType: "MainModelField" | "SDXLMainModelField" | "SDXLRefinerModelField" | "ONNXModelField" | "VAEModelField" | "LoRAModelField" | "ControlNetModelField" | "IPAdapterModelField" | "T2IAdapterModelField" | "SchedulerField" | "AnyField" | "CollectionField" | "CollectionItemField" | "DEPRECATED_Boolean" | "DEPRECATED_Color" | "DEPRECATED_Conditioning" | "DEPRECATED_Control" | "DEPRECATED_Float" | "DEPRECATED_Image" | "DEPRECATED_Integer" | "DEPRECATED_Latents" | "DEPRECATED_String" | "DEPRECATED_BooleanCollection" | "DEPRECATED_ColorCollection" | "DEPRECATED_ConditioningCollection" | "DEPRECATED_ControlCollection" | "DEPRECATED_FloatCollection" | "DEPRECATED_ImageCollection" | "DEPRECATED_IntegerCollection" | "DEPRECATED_LatentsCollection" | "DEPRECATED_StringCollection" | "DEPRECATED_BooleanPolymorphic" | "DEPRECATED_ColorPolymorphic" | "DEPRECATED_ConditioningPolymorphic" | "DEPRECATED_ControlPolymorphic" | "DEPRECATED_FloatPolymorphic" | "DEPRECATED_ImagePolymorphic" | "DEPRECATED_IntegerPolymorphic" | "DEPRECATED_LatentsPolymorphic" | "DEPRECATED_StringPolymorphic" | "DEPRECATED_UNet" | "DEPRECATED_Vae" | "DEPRECATED_CLIP" | "DEPRECATED_Collection" | "DEPRECATED_CollectionItem" | "DEPRECATED_Enum" | "DEPRECATED_WorkflowField" | "DEPRECATED_IsIntermediate" | "DEPRECATED_BoardField" | "DEPRECATED_MetadataItem" | "DEPRECATED_MetadataItemCollection" | "DEPRECATED_MetadataItemPolymorphic" | "DEPRECATED_MetadataDict"; InvocationOutputMap: { - ideal_size: components["schemas"]["IdealSizeOutput"]; - boolean_collection: components["schemas"]["BooleanCollectionOutput"]; - latents_collection: components["schemas"]["LatentsCollectionOutput"]; - canvas_paste_back: components["schemas"]["ImageOutput"]; - img_channel_multiply: components["schemas"]["ImageOutput"]; - boolean: components["schemas"]["BooleanOutput"]; - img_pad_crop: components["schemas"]["ImageOutput"]; - unsharp_mask: components["schemas"]["ImageOutput"]; - color_correct: components["schemas"]["ImageOutput"]; - mask_from_id: components["schemas"]["ImageOutput"]; - latents: components["schemas"]["LatentsOutput"]; - conditioning_collection: components["schemas"]["ConditioningCollectionOutput"]; + lineart_anime_image_processor: components["schemas"]["ImageOutput"]; + string: components["schemas"]["StringOutput"]; + invert_tensor_mask: components["schemas"]["MaskOutput"]; + img_nsfw: components["schemas"]["ImageOutput"]; + create_gradient_mask: components["schemas"]["GradientMaskOutput"]; + pair_tile_image: components["schemas"]["PairTileImageOutput"]; crop_latents: components["schemas"]["LatentsOutput"]; - show_image: components["schemas"]["ImageOutput"]; - img_scale: components["schemas"]["ImageOutput"]; - dynamic_prompt: components["schemas"]["StringCollectionOutput"]; - rand_float: components["schemas"]["FloatOutput"]; - color: components["schemas"]["ColorOutput"]; + image: components["schemas"]["ImageOutput"]; + image_collection: components["schemas"]["ImageCollectionOutput"]; + string_split_neg: components["schemas"]["StringPosNegOutput"]; + mlsd_image_processor: components["schemas"]["ImageOutput"]; + img_conv: components["schemas"]["ImageOutput"]; + infill_cv2: components["schemas"]["ImageOutput"]; + face_mask_detection: components["schemas"]["FaceMaskOutput"]; + metadata_item: components["schemas"]["MetadataItemOutput"]; + string_collection: components["schemas"]["StringCollectionOutput"]; + prompt_from_file: components["schemas"]["StringCollectionOutput"]; + infill_rgba: components["schemas"]["ImageOutput"]; + denoise_latents: components["schemas"]["LatentsOutput"]; + normalbae_image_processor: components["schemas"]["ImageOutput"]; + infill_patchmatch: components["schemas"]["ImageOutput"]; + blank_image: components["schemas"]["ImageOutput"]; + scheduler: components["schemas"]["SchedulerOutput"]; + img_crop: components["schemas"]["ImageOutput"]; + lineart_image_processor: components["schemas"]["ImageOutput"]; + noise: components["schemas"]["NoiseOutput"]; + face_identifier: components["schemas"]["ImageOutput"]; + lora_collection_loader: components["schemas"]["LoRALoaderOutput"]; + iterate: components["schemas"]["IterateInvocationOutput"]; + tile_image_processor: components["schemas"]["ImageOutput"]; + calculate_image_tiles_min_overlap: components["schemas"]["CalculateImageTilesOutput"]; + core_metadata: components["schemas"]["MetadataOutput"]; + model_identifier: components["schemas"]["ModelIdentifierOutput"]; + color_map_image_processor: components["schemas"]["ImageOutput"]; + float_math: components["schemas"]["FloatOutput"]; + integer: components["schemas"]["IntegerOutput"]; + t2i_adapter: components["schemas"]["T2IAdapterOutput"]; + img_hue_adjust: components["schemas"]["ImageOutput"]; + img_lerp: components["schemas"]["ImageOutput"]; + rand_int: components["schemas"]["IntegerOutput"]; + cv_inpaint: components["schemas"]["ImageOutput"]; + boolean_collection: components["schemas"]["BooleanCollectionOutput"]; + mask_combine: components["schemas"]["ImageOutput"]; + sdxl_lora_loader: components["schemas"]["SDXLLoRALoaderOutput"]; + canny_image_processor: components["schemas"]["ImageOutput"]; + save_image: components["schemas"]["ImageOutput"]; + boolean: components["schemas"]["BooleanOutput"]; + img_paste: components["schemas"]["ImageOutput"]; + tile_to_properties: components["schemas"]["TileToPropertiesOutput"]; + img_channel_offset: components["schemas"]["ImageOutput"]; + sdxl_lora_collection_loader: components["schemas"]["SDXLLoRALoaderOutput"]; + merge_metadata: components["schemas"]["MetadataOutput"]; + collect: components["schemas"]["CollectInvocationOutput"]; + mask_edge: components["schemas"]["ImageOutput"]; + rectangle_mask: components["schemas"]["MaskOutput"]; + lora_selector: components["schemas"]["LoRASelectorOutput"]; + heuristic_resize: components["schemas"]["ImageOutput"]; + sdxl_model_loader: components["schemas"]["SDXLModelLoaderOutput"]; range: components["schemas"]["IntegerCollectionOutput"]; + leres_image_processor: components["schemas"]["ImageOutput"]; + calculate_image_tiles_even_split: components["schemas"]["CalculateImageTilesOutput"]; + infill_tile: components["schemas"]["ImageOutput"]; + mediapipe_face_processor: components["schemas"]["ImageOutput"]; + conditioning: components["schemas"]["ConditioningOutput"]; + string_join: components["schemas"]["StringOutput"]; + img_watermark: components["schemas"]["ImageOutput"]; + calculate_image_tiles: components["schemas"]["CalculateImageTilesOutput"]; + tomask: components["schemas"]["ImageOutput"]; + compel: components["schemas"]["ConditioningOutput"]; + face_off: components["schemas"]["FaceOffOutput"]; + lora_loader: components["schemas"]["LoRALoaderOutput"]; + sdxl_compel_prompt: components["schemas"]["ConditioningOutput"]; + lresize: components["schemas"]["LatentsOutput"]; + float_collection: components["schemas"]["FloatCollectionOutput"]; + canvas_paste_back: components["schemas"]["ImageOutput"]; + sdxl_refiner_compel_prompt: components["schemas"]["ConditioningOutput"]; + content_shuffle_image_processor: components["schemas"]["ImageOutput"]; + sdxl_refiner_model_loader: components["schemas"]["SDXLRefinerModelLoaderOutput"]; + float_to_int: components["schemas"]["IntegerOutput"]; + i2l: components["schemas"]["LatentsOutput"]; + unsharp_mask: components["schemas"]["ImageOutput"]; + img_channel_multiply: components["schemas"]["ImageOutput"]; + pidi_image_processor: components["schemas"]["ImageOutput"]; + merge_tiles_to_image: components["schemas"]["ImageOutput"]; + segment_anything_processor: components["schemas"]["ImageOutput"]; + latents_collection: components["schemas"]["LatentsCollectionOutput"]; + depth_anything_image_processor: components["schemas"]["ImageOutput"]; + step_param_easing: components["schemas"]["FloatCollectionOutput"]; + mask_from_id: components["schemas"]["ImageOutput"]; + color_correct: components["schemas"]["ImageOutput"]; + dynamic_prompt: components["schemas"]["StringCollectionOutput"]; + lscale: components["schemas"]["LatentsOutput"]; + lblend: components["schemas"]["LatentsOutput"]; + vae_loader: components["schemas"]["VAEOutput"]; + controlnet: components["schemas"]["ControlOutput"]; + img_pad_crop: components["schemas"]["ImageOutput"]; + img_scale: components["schemas"]["ImageOutput"]; + dw_openpose_image_processor: components["schemas"]["ImageOutput"]; + latents: components["schemas"]["LatentsOutput"]; + esrgan: components["schemas"]["ImageOutput"]; + conditioning_collection: components["schemas"]["ConditioningCollectionOutput"]; + main_model_loader: components["schemas"]["ModelLoaderOutput"]; + rand_float: components["schemas"]["FloatOutput"]; metadata: components["schemas"]["MetadataOutput"]; string_replace: components["schemas"]["StringOutput"]; - image_mask_to_tensor: components["schemas"]["MaskOutput"]; + color: components["schemas"]["ColorOutput"]; img_resize: components["schemas"]["ImageOutput"]; + image_mask_to_tensor: components["schemas"]["MaskOutput"]; mul: components["schemas"]["IntegerOutput"]; - ip_adapter: components["schemas"]["IPAdapterOutput"]; - seamless: components["schemas"]["SeamlessModeOutput"]; - denoise_latents: components["schemas"]["LatentsOutput"]; - freeu: components["schemas"]["UNetOutput"]; - alpha_mask_to_tensor: components["schemas"]["MaskOutput"]; + show_image: components["schemas"]["ImageOutput"]; img_blur: components["schemas"]["ImageOutput"]; - create_denoise_mask: components["schemas"]["DenoiseMaskOutput"]; + alpha_mask_to_tensor: components["schemas"]["MaskOutput"]; + integer_collection: components["schemas"]["IntegerCollectionOutput"]; round_float: components["schemas"]["FloatOutput"]; - create_gradient_mask: components["schemas"]["GradientMaskOutput"]; - controlnet: components["schemas"]["ControlOutput"]; + ip_adapter: components["schemas"]["IPAdapterOutput"]; img_ilerp: components["schemas"]["ImageOutput"]; + float_range: components["schemas"]["FloatCollectionOutput"]; string_join_three: components["schemas"]["StringOutput"]; sub: components["schemas"]["IntegerOutput"]; - scheduler: components["schemas"]["SchedulerOutput"]; - zoe_depth_image_processor: components["schemas"]["ImageOutput"]; - integer_collection: components["schemas"]["IntegerCollectionOutput"]; - hed_image_processor: components["schemas"]["ImageOutput"]; + random_range: components["schemas"]["IntegerCollectionOutput"]; + l2i: components["schemas"]["ImageOutput"]; + float: components["schemas"]["FloatOutput"]; add: components["schemas"]["IntegerOutput"]; integer_math: components["schemas"]["IntegerOutput"]; - sdxl_model_loader: components["schemas"]["SDXLModelLoaderOutput"]; - midas_depth_image_processor: components["schemas"]["ImageOutput"]; string_split: components["schemas"]["String2Output"]; - clip_skip: components["schemas"]["CLIPSkipInvocationOutput"]; - lineart_anime_image_processor: components["schemas"]["ImageOutput"]; - pair_tile_image: components["schemas"]["PairTileImageOutput"]; img_mul: components["schemas"]["ImageOutput"]; - mlsd_image_processor: components["schemas"]["ImageOutput"]; - lora_collection_loader: components["schemas"]["LoRALoaderOutput"]; - infill_lama: components["schemas"]["ImageOutput"]; - float_range: components["schemas"]["FloatCollectionOutput"]; - normalbae_image_processor: components["schemas"]["ImageOutput"]; - face_mask_detection: components["schemas"]["FaceMaskOutput"]; - model_identifier: components["schemas"]["ModelIdentifierOutput"]; - string: components["schemas"]["StringOutput"]; - sdxl_refiner_model_loader: components["schemas"]["SDXLRefinerModelLoaderOutput"]; - img_chan: components["schemas"]["ImageOutput"]; - div: components["schemas"]["IntegerOutput"]; - float: components["schemas"]["FloatOutput"]; - lresize: components["schemas"]["LatentsOutput"]; - tile_image_processor: components["schemas"]["ImageOutput"]; - invert_tensor_mask: components["schemas"]["MaskOutput"]; - step_param_easing: components["schemas"]["FloatCollectionOutput"]; - color_map_image_processor: components["schemas"]["ImageOutput"]; - blank_image: components["schemas"]["ImageOutput"]; - img_hue_adjust: components["schemas"]["ImageOutput"]; - i2l: components["schemas"]["LatentsOutput"]; - img_nsfw: components["schemas"]["ImageOutput"]; - face_identifier: components["schemas"]["ImageOutput"]; - lineart_image_processor: components["schemas"]["ImageOutput"]; - img_crop: components["schemas"]["ImageOutput"]; - image: components["schemas"]["ImageOutput"]; - iterate: components["schemas"]["IterateInvocationOutput"]; - image_collection: components["schemas"]["ImageCollectionOutput"]; - sdxl_lora_loader: components["schemas"]["SDXLLoRALoaderOutput"]; - calculate_image_tiles_min_overlap: components["schemas"]["CalculateImageTilesOutput"]; - infill_cv2: components["schemas"]["ImageOutput"]; - t2i_adapter: components["schemas"]["T2IAdapterOutput"]; - string_collection: components["schemas"]["StringCollectionOutput"]; - lblend: components["schemas"]["LatentsOutput"]; - string_split_neg: components["schemas"]["StringPosNegOutput"]; - metadata_item: components["schemas"]["MetadataItemOutput"]; - lscale: components["schemas"]["LatentsOutput"]; - infill_patchmatch: components["schemas"]["ImageOutput"]; - random_range: components["schemas"]["IntegerCollectionOutput"]; - sdxl_lora_collection_loader: components["schemas"]["SDXLLoRALoaderOutput"]; - img_conv: components["schemas"]["ImageOutput"]; - lora_selector: components["schemas"]["LoRASelectorOutput"]; - infill_rgba: components["schemas"]["ImageOutput"]; - cv_inpaint: components["schemas"]["ImageOutput"]; - esrgan: components["schemas"]["ImageOutput"]; - heuristic_resize: components["schemas"]["ImageOutput"]; - tile_to_properties: components["schemas"]["TileToPropertiesOutput"]; - leres_image_processor: components["schemas"]["ImageOutput"]; - lora_loader: components["schemas"]["LoRALoaderOutput"]; - mediapipe_face_processor: components["schemas"]["ImageOutput"]; - core_metadata: components["schemas"]["MetadataOutput"]; - canny_image_processor: components["schemas"]["ImageOutput"]; - float_math: components["schemas"]["FloatOutput"]; + seamless: components["schemas"]["SeamlessModeOutput"]; range_of_size: components["schemas"]["IntegerCollectionOutput"]; - collect: components["schemas"]["CollectInvocationOutput"]; - img_paste: components["schemas"]["ImageOutput"]; - calculate_image_tiles_even_split: components["schemas"]["CalculateImageTilesOutput"]; - face_off: components["schemas"]["FaceOffOutput"]; - rand_int: components["schemas"]["IntegerOutput"]; - calculate_image_tiles: components["schemas"]["CalculateImageTilesOutput"]; - content_shuffle_image_processor: components["schemas"]["ImageOutput"]; - img_lerp: components["schemas"]["ImageOutput"]; - float_to_int: components["schemas"]["IntegerOutput"]; - save_image: components["schemas"]["ImageOutput"]; - mask_combine: components["schemas"]["ImageOutput"]; - img_channel_offset: components["schemas"]["ImageOutput"]; - pidi_image_processor: components["schemas"]["ImageOutput"]; - merge_metadata: components["schemas"]["MetadataOutput"]; - vae_loader: components["schemas"]["VAEOutput"]; - segment_anything_processor: components["schemas"]["ImageOutput"]; - rectangle_mask: components["schemas"]["MaskOutput"]; - depth_anything_image_processor: components["schemas"]["ImageOutput"]; - mask_edge: components["schemas"]["ImageOutput"]; - prompt_from_file: components["schemas"]["StringCollectionOutput"]; - integer: components["schemas"]["IntegerOutput"]; - merge_tiles_to_image: components["schemas"]["ImageOutput"]; - sdxl_compel_prompt: components["schemas"]["ConditioningOutput"]; - conditioning: components["schemas"]["ConditioningOutput"]; - sdxl_refiner_compel_prompt: components["schemas"]["ConditioningOutput"]; - tomask: components["schemas"]["ImageOutput"]; - l2i: components["schemas"]["ImageOutput"]; - main_model_loader: components["schemas"]["ModelLoaderOutput"]; - string_join: components["schemas"]["StringOutput"]; - compel: components["schemas"]["ConditioningOutput"]; - img_watermark: components["schemas"]["ImageOutput"]; - infill_tile: components["schemas"]["ImageOutput"]; - dw_openpose_image_processor: components["schemas"]["ImageOutput"]; - float_collection: components["schemas"]["FloatCollectionOutput"]; - noise: components["schemas"]["NoiseOutput"]; + ideal_size: components["schemas"]["IdealSizeOutput"]; + freeu: components["schemas"]["UNetOutput"]; + create_denoise_mask: components["schemas"]["DenoiseMaskOutput"]; + clip_skip: components["schemas"]["CLIPSkipInvocationOutput"]; + infill_lama: components["schemas"]["ImageOutput"]; + hed_image_processor: components["schemas"]["ImageOutput"]; + img_chan: components["schemas"]["ImageOutput"]; + midas_depth_image_processor: components["schemas"]["ImageOutput"]; + div: components["schemas"]["IntegerOutput"]; + zoe_depth_image_processor: components["schemas"]["ImageOutput"]; }; /** * InvocationStartedEvent diff --git a/invokeai/frontend/web/src/services/api/types.ts b/invokeai/frontend/web/src/services/api/types.ts index 578b60efa7..3522d719fb 100644 --- a/invokeai/frontend/web/src/services/api/types.ts +++ b/invokeai/frontend/web/src/services/api/types.ts @@ -38,7 +38,6 @@ export type OffsetPaginatedResults_ImageDTO_ = S['OffsetPaginatedResults_ImageDT // Models export type ModelType = S['ModelType']; -export type SubModelType = S['SubModelType']; export type BaseModelType = S['BaseModelType']; // Model Configs diff --git a/invokeai/frontend/web/src/services/events/types.ts b/invokeai/frontend/web/src/services/events/types.ts index 98f1b36b3f..8a534c8c83 100644 --- a/invokeai/frontend/web/src/services/events/types.ts +++ b/invokeai/frontend/web/src/services/events/types.ts @@ -19,8 +19,9 @@ export type ModelInstallErrorEvent = S['ModelInstallErrorEvent']; export type ModelInstallStartedEvent = S['ModelInstallStartedEvent']; export type ModelInstallCancelledEvent = S['ModelInstallCancelledEvent']; +type SessionStartedEvent = S['SessionStartedEvent']; export type SessionCompleteEvent = S['SessionCompleteEvent']; -export type SessionCanceledEvent = S['SessionCanceledEvent']; +type SessionCanceledEvent = S['SessionCanceledEvent']; export type QueueItemStatusChangedEvent = S['QueueItemStatusChangedEvent']; @@ -31,18 +32,20 @@ export type BulkDownloadFailedEvent = S['BulkDownloadErrorEvent']; type ClientEmitSubscribeQueue = { queue_id: string; }; -export type ClientEmitUnsubscribeQueue = ClientEmitSubscribeQueue; -export type ClientEmitSubscribeBulkDownload = { +type ClientEmitUnsubscribeQueue = ClientEmitSubscribeQueue; +type ClientEmitSubscribeBulkDownload = { bulk_download_id: string; }; -export type ClientEmitUnsubscribeBulkDownload = ClientEmitSubscribeBulkDownload; +type ClientEmitUnsubscribeBulkDownload = ClientEmitSubscribeBulkDownload; export type ServerToClientEvents = { invocation_denoise_progress: (payload: InvocationDenoiseProgressEvent) => void; invocation_complete: (payload: InvocationCompleteEvent) => void; invocation_error: (payload: InvocationErrorEvent) => void; invocation_started: (payload: InvocationStartedEvent) => void; + session_started: (payload: SessionStartedEvent) => void; session_complete: (payload: SessionCompleteEvent) => void; + session_canceled: (payload: SessionCanceledEvent) => void; model_load_started: (payload: ModelLoadStartedEvent) => void; model_install_started: (payload: ModelInstallStartedEvent) => void; model_install_download_progress: (payload: ModelInstallDownloadProgressEvent) => void;