fix: Update Clip 3 slot title & lint issues

This commit is contained in:
blessedcoolant 2024-06-20 08:53:35 +05:30
parent c403efa83f
commit 66260fd345
2 changed files with 126 additions and 128 deletions

View File

@ -118,7 +118,7 @@ class StableDiffusion3Invocation(BaseInvocation):
negative_prompt: str = InputField(default="", title="Negative Prompt")
steps: int = InputField(default=20, gt=0, description=FieldDescriptions.steps)
guidance_scale: float = InputField(default=7.0, description=FieldDescriptions.cfg_scale, title="CFG Scale")
use_clip_3: bool = InputField(default=True, description="Use TE5 Encoder of SD3")
use_clip_3: bool = InputField(default=True, description="Use TE5 Encoder of SD3", title="Use TE5 Encoder")
seed: int = InputField(
default=0,
@ -145,8 +145,6 @@ class StableDiffusion3Invocation(BaseInvocation):
return v % (SEED_MAX + 1)
def invoke(self, context: InvocationContext) -> LatentsOutput:
app_config = context.config.get()
with ExitStack() as stack:
tokenizer_1 = stack.enter_context(context.models.load(self.clip.tokenizer_1))
tokenizer_2 = stack.enter_context(context.models.load(self.clip.tokenizer_2))

View File

@ -7284,145 +7284,145 @@ export type components = {
};
InvocationOutputMap: {
float_to_int: components["schemas"]["IntegerOutput"];
mask_edge: components["schemas"]["ImageOutput"];
face_off: components["schemas"]["FaceOffOutput"];
l2i: components["schemas"]["ImageOutput"];
content_shuffle_image_processor: components["schemas"]["ImageOutput"];
invert_tensor_mask: components["schemas"]["MaskOutput"];
tile_to_properties: components["schemas"]["TileToPropertiesOutput"];
tomask: components["schemas"]["ImageOutput"];
iterate: components["schemas"]["IterateInvocationOutput"];
create_gradient_mask: components["schemas"]["GradientMaskOutput"];
sd3_model_loader: components["schemas"]["SD3ModelLoaderOutput"];
merge_tiles_to_image: components["schemas"]["ImageOutput"];
save_image: components["schemas"]["ImageOutput"];
range_of_size: components["schemas"]["IntegerCollectionOutput"];
cv_inpaint: components["schemas"]["ImageOutput"];
t2i_adapter: components["schemas"]["T2IAdapterOutput"];
lscale: components["schemas"]["LatentsOutput"];
mlsd_image_processor: components["schemas"]["ImageOutput"];
seamless: components["schemas"]["SeamlessModeOutput"];
img_hue_adjust: components["schemas"]["ImageOutput"];
boolean: components["schemas"]["BooleanOutput"];
infill_lama: components["schemas"]["ImageOutput"];
model_identifier: components["schemas"]["ModelIdentifierOutput"];
lresize: components["schemas"]["LatentsOutput"];
core_metadata: components["schemas"]["MetadataOutput"];
float_math: components["schemas"]["FloatOutput"];
lineart_anime_image_processor: components["schemas"]["ImageOutput"];
rectangle_mask: components["schemas"]["MaskOutput"];
collect: components["schemas"]["CollectInvocationOutput"];
sub: components["schemas"]["IntegerOutput"];
show_image: components["schemas"]["ImageOutput"];
add: components["schemas"]["IntegerOutput"];
sdxl_compel_prompt: components["schemas"]["ConditioningOutput"];
scheduler: components["schemas"]["SchedulerOutput"];
string: components["schemas"]["StringOutput"];
mediapipe_face_processor: components["schemas"]["ImageOutput"];
sdxl_lora_collection_loader: components["schemas"]["SDXLLoRALoaderOutput"];
heuristic_resize: components["schemas"]["ImageOutput"];
unsharp_mask: components["schemas"]["ImageOutput"];
string_replace: components["schemas"]["StringOutput"];
sdxl_model_loader: components["schemas"]["SDXLModelLoaderOutput"];
img_nsfw: components["schemas"]["ImageOutput"];
canvas_paste_back: components["schemas"]["ImageOutput"];
integer: components["schemas"]["IntegerOutput"];
img_mul: components["schemas"]["ImageOutput"];
latents: components["schemas"]["LatentsOutput"];
string_join: components["schemas"]["StringOutput"];
integer_collection: components["schemas"]["IntegerCollectionOutput"];
img_crop: components["schemas"]["ImageOutput"];
div: components["schemas"]["IntegerOutput"];
metadata: components["schemas"]["MetadataOutput"];
img_watermark: components["schemas"]["ImageOutput"];
ideal_size: components["schemas"]["IdealSizeOutput"];
tile_image_processor: components["schemas"]["ImageOutput"];
mul: components["schemas"]["IntegerOutput"];
crop_latents: components["schemas"]["LatentsOutput"];
dw_openpose_image_processor: components["schemas"]["ImageOutput"];
random_range: components["schemas"]["IntegerCollectionOutput"];
face_mask_detection: components["schemas"]["FaceMaskOutput"];
float: components["schemas"]["FloatOutput"];
img_paste: components["schemas"]["ImageOutput"];
latents_collection: components["schemas"]["LatentsCollectionOutput"];
normalbae_image_processor: components["schemas"]["ImageOutput"];
img_channel_multiply: components["schemas"]["ImageOutput"];
string_join_three: components["schemas"]["StringOutput"];
image_collection: components["schemas"]["ImageCollectionOutput"];
color_map_image_processor: components["schemas"]["ImageOutput"];
ip_adapter: components["schemas"]["IPAdapterOutput"];
lineart_image_processor: components["schemas"]["ImageOutput"];
scheduler: components["schemas"]["SchedulerOutput"];
infill_rgba: components["schemas"]["ImageOutput"];
face_identifier: components["schemas"]["ImageOutput"];
color: components["schemas"]["ColorOutput"];
noise: components["schemas"]["NoiseOutput"];
pair_tile_image: components["schemas"]["PairTileImageOutput"];
t2i_adapter: components["schemas"]["T2IAdapterOutput"];
sdxl_lora_loader: components["schemas"]["SDXLLoRALoaderOutput"];
heuristic_resize: components["schemas"]["ImageOutput"];
sdxl_compel_prompt: components["schemas"]["ConditioningOutput"];
mul: components["schemas"]["IntegerOutput"];
metadata_item: components["schemas"]["MetadataItemOutput"];
img_ilerp: components["schemas"]["ImageOutput"];
l2i: components["schemas"]["ImageOutput"];
rectangle_mask: components["schemas"]["MaskOutput"];
mask_from_id: components["schemas"]["ImageOutput"];
random_range: components["schemas"]["IntegerCollectionOutput"];
blank_image: components["schemas"]["ImageOutput"];
round_float: components["schemas"]["FloatOutput"];
mlsd_image_processor: components["schemas"]["ImageOutput"];
img_lerp: components["schemas"]["ImageOutput"];
sdxl_refiner_compel_prompt: components["schemas"]["ConditioningOutput"];
integer_collection: components["schemas"]["IntegerCollectionOutput"];
lscale: components["schemas"]["LatentsOutput"];
calculate_image_tiles: components["schemas"]["CalculateImageTilesOutput"];
lora_selector: components["schemas"]["LoRASelectorOutput"];
vae_loader: components["schemas"]["VAEOutput"];
div: components["schemas"]["IntegerOutput"];
controlnet: components["schemas"]["ControlOutput"];
merge_metadata: components["schemas"]["MetadataOutput"];
infill_tile: components["schemas"]["ImageOutput"];
main_model_loader: components["schemas"]["ModelLoaderOutput"];
img_blur: components["schemas"]["ImageOutput"];
color_correct: components["schemas"]["ImageOutput"];
sub: components["schemas"]["IntegerOutput"];
calculate_image_tiles_min_overlap: components["schemas"]["CalculateImageTilesOutput"];
img_mul: components["schemas"]["ImageOutput"];
float_math: components["schemas"]["FloatOutput"];
tile_image_processor: components["schemas"]["ImageOutput"];
sdxl_refiner_compel_prompt: components["schemas"]["ConditioningOutput"];
infill_lama: components["schemas"]["ImageOutput"];
img_resize: components["schemas"]["ImageOutput"];
canny_image_processor: components["schemas"]["ImageOutput"];
lora_loader: components["schemas"]["LoRALoaderOutput"];
ip_adapter: components["schemas"]["IPAdapterOutput"];
face_off: components["schemas"]["FaceOffOutput"];
alpha_mask_to_tensor: components["schemas"]["MaskOutput"];
img_channel_offset: components["schemas"]["ImageOutput"];
boolean: components["schemas"]["BooleanOutput"];
image: components["schemas"]["ImageOutput"];
zoe_depth_image_processor: components["schemas"]["ImageOutput"];
sdxl_refiner_model_loader: components["schemas"]["SDXLRefinerModelLoaderOutput"];
calculate_image_tiles_even_split: components["schemas"]["CalculateImageTilesOutput"];
model_identifier: components["schemas"]["ModelIdentifierOutput"];
string_collection: components["schemas"]["StringCollectionOutput"];
img_crop: components["schemas"]["ImageOutput"];
integer_math: components["schemas"]["IntegerOutput"];
crop_latents: components["schemas"]["LatentsOutput"];
img_hue_adjust: components["schemas"]["ImageOutput"];
tile_to_properties: components["schemas"]["TileToPropertiesOutput"];
hed_image_processor: components["schemas"]["ImageOutput"];
conditioning: components["schemas"]["ConditioningOutput"];
color_map_image_processor: components["schemas"]["ImageOutput"];
i2l: components["schemas"]["LatentsOutput"];
infill_patchmatch: components["schemas"]["ImageOutput"];
float_range: components["schemas"]["FloatCollectionOutput"];
sd3_image_generator: components["schemas"]["LatentsOutput"];
segment_anything_processor: components["schemas"]["ImageOutput"];
string_split_neg: components["schemas"]["StringPosNegOutput"];
sdxl_refiner_model_loader: components["schemas"]["SDXLRefinerModelLoaderOutput"];
infill_tile: components["schemas"]["ImageOutput"];
canny_image_processor: components["schemas"]["ImageOutput"];
sd3_image_generator: components["schemas"]["LatentsOutput"];
create_denoise_mask: components["schemas"]["DenoiseMaskOutput"];
main_model_loader: components["schemas"]["ModelLoaderOutput"];
pair_tile_image: components["schemas"]["PairTileImageOutput"];
float_range: components["schemas"]["FloatCollectionOutput"];
esrgan: components["schemas"]["ImageOutput"];
img_ilerp: components["schemas"]["ImageOutput"];
sdxl_lora_loader: components["schemas"]["SDXLLoRALoaderOutput"];
i2l: components["schemas"]["LatentsOutput"];
noise: components["schemas"]["NoiseOutput"];
infill_patchmatch: components["schemas"]["ImageOutput"];
rand_float: components["schemas"]["FloatOutput"];
conditioning: components["schemas"]["ConditioningOutput"];
midas_depth_image_processor: components["schemas"]["ImageOutput"];
lora_collection_loader: components["schemas"]["LoRALoaderOutput"];
img_resize: components["schemas"]["ImageOutput"];
lora_selector: components["schemas"]["LoRASelectorOutput"];
infill_cv2: components["schemas"]["ImageOutput"];
dynamic_prompt: components["schemas"]["StringCollectionOutput"];
integer_math: components["schemas"]["IntegerOutput"];
hed_image_processor: components["schemas"]["ImageOutput"];
metadata_item: components["schemas"]["MetadataItemOutput"];
calculate_image_tiles: components["schemas"]["CalculateImageTilesOutput"];
img_pad_crop: components["schemas"]["ImageOutput"];
alpha_mask_to_tensor: components["schemas"]["MaskOutput"];
leres_image_processor: components["schemas"]["ImageOutput"];
face_mask_detection: components["schemas"]["FaceMaskOutput"];
add: components["schemas"]["IntegerOutput"];
lineart_anime_image_processor: components["schemas"]["ImageOutput"];
midas_depth_image_processor: components["schemas"]["ImageOutput"];
img_chan: components["schemas"]["ImageOutput"];
color: components["schemas"]["ColorOutput"];
rand_int: components["schemas"]["IntegerOutput"];
clip_skip: components["schemas"]["CLIPSkipInvocationOutput"];
lineart_image_processor: components["schemas"]["ImageOutput"];
pidi_image_processor: components["schemas"]["ImageOutput"];
blank_image: components["schemas"]["ImageOutput"];
image_mask_to_tensor: components["schemas"]["MaskOutput"];
lblend: components["schemas"]["LatentsOutput"];
prompt_from_file: components["schemas"]["StringCollectionOutput"];
vae_loader: components["schemas"]["VAEOutput"];
calculate_image_tiles_even_split: components["schemas"]["CalculateImageTilesOutput"];
boolean_collection: components["schemas"]["BooleanCollectionOutput"];
img_conv: components["schemas"]["ImageOutput"];
mask_from_id: components["schemas"]["ImageOutput"];
lora_loader: components["schemas"]["LoRALoaderOutput"];
mask_combine: components["schemas"]["ImageOutput"];
conditioning_collection: components["schemas"]["ConditioningCollectionOutput"];
denoise_latents: components["schemas"]["LatentsOutput"];
normalbae_image_processor: components["schemas"]["ImageOutput"];
img_nsfw: components["schemas"]["ImageOutput"];
content_shuffle_image_processor: components["schemas"]["ImageOutput"];
string_replace: components["schemas"]["StringOutput"];
freeu: components["schemas"]["UNetOutput"];
round_float: components["schemas"]["FloatOutput"];
img_scale: components["schemas"]["ImageOutput"];
lresize: components["schemas"]["LatentsOutput"];
float_collection: components["schemas"]["FloatCollectionOutput"];
zoe_depth_image_processor: components["schemas"]["ImageOutput"];
img_blur: components["schemas"]["ImageOutput"];
image: components["schemas"]["ImageOutput"];
img_pad_crop: components["schemas"]["ImageOutput"];
rand_float: components["schemas"]["FloatOutput"];
unsharp_mask: components["schemas"]["ImageOutput"];
metadata: components["schemas"]["MetadataOutput"];
canvas_paste_back: components["schemas"]["ImageOutput"];
range: components["schemas"]["IntegerCollectionOutput"];
sdxl_model_loader: components["schemas"]["SDXLModelLoaderOutput"];
denoise_latents: components["schemas"]["LatentsOutput"];
mask_edge: components["schemas"]["ImageOutput"];
merge_metadata: components["schemas"]["MetadataOutput"];
depth_anything_image_processor: components["schemas"]["ImageOutput"];
img_channel_offset: components["schemas"]["ImageOutput"];
step_param_easing: components["schemas"]["FloatCollectionOutput"];
compel: components["schemas"]["ConditioningOutput"];
esrgan: components["schemas"]["ImageOutput"];
create_denoise_mask: components["schemas"]["DenoiseMaskOutput"];
latents_collection: components["schemas"]["LatentsCollectionOutput"];
infill_cv2: components["schemas"]["ImageOutput"];
string: components["schemas"]["StringOutput"];
mask_combine: components["schemas"]["ImageOutput"];
lblend: components["schemas"]["LatentsOutput"];
collect: components["schemas"]["CollectInvocationOutput"];
img_paste: components["schemas"]["ImageOutput"];
clip_skip: components["schemas"]["CLIPSkipInvocationOutput"];
img_channel_multiply: components["schemas"]["ImageOutput"];
mediapipe_face_processor: components["schemas"]["ImageOutput"];
float_collection: components["schemas"]["FloatCollectionOutput"];
cv_inpaint: components["schemas"]["ImageOutput"];
ideal_size: components["schemas"]["IdealSizeOutput"];
image_mask_to_tensor: components["schemas"]["MaskOutput"];
dynamic_prompt: components["schemas"]["StringCollectionOutput"];
save_image: components["schemas"]["ImageOutput"];
range_of_size: components["schemas"]["IntegerCollectionOutput"];
integer: components["schemas"]["IntegerOutput"];
string_split: components["schemas"]["String2Output"];
infill_rgba: components["schemas"]["ImageOutput"];
calculate_image_tiles_min_overlap: components["schemas"]["CalculateImageTilesOutput"];
face_identifier: components["schemas"]["ImageOutput"];
rand_int: components["schemas"]["IntegerOutput"];
sd3_model_loader: components["schemas"]["SD3ModelLoaderOutput"];
image_collection: components["schemas"]["ImageCollectionOutput"];
invert_tensor_mask: components["schemas"]["MaskOutput"];
pidi_image_processor: components["schemas"]["ImageOutput"];
img_watermark: components["schemas"]["ImageOutput"];
step_param_easing: components["schemas"]["FloatCollectionOutput"];
seamless: components["schemas"]["SeamlessModeOutput"];
float: components["schemas"]["FloatOutput"];
dw_openpose_image_processor: components["schemas"]["ImageOutput"];
img_conv: components["schemas"]["ImageOutput"];
prompt_from_file: components["schemas"]["StringCollectionOutput"];
conditioning_collection: components["schemas"]["ConditioningCollectionOutput"];
iterate: components["schemas"]["IterateInvocationOutput"];
sdxl_lora_collection_loader: components["schemas"]["SDXLLoRALoaderOutput"];
leres_image_processor: components["schemas"]["ImageOutput"];
merge_tiles_to_image: components["schemas"]["ImageOutput"];
tomask: components["schemas"]["ImageOutput"];
create_gradient_mask: components["schemas"]["GradientMaskOutput"];
latents: components["schemas"]["LatentsOutput"];
string_join: components["schemas"]["StringOutput"];
show_image: components["schemas"]["ImageOutput"];
img_scale: components["schemas"]["ImageOutput"];
boolean_collection: components["schemas"]["BooleanCollectionOutput"];
};
/**
* InvocationStartedEvent
@ -11995,7 +11995,7 @@ export type components = {
*/
guidance_scale?: number;
/**
* Use Clip 3
* Use TE5 Encoder
* @description Use TE5 Encoder of SD3
* @default true
*/