Skip to content

Commit 112af70

Browse files
committed
update(LoadImageWithoutListDir node): input_image_path
1 parent df1ab82 commit 112af70

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,4 @@ This node is designed to return an empty conditioning, the size is zero. It can
174174
This node is designed to crop the image by the mask to a specific size.
175175
176176
## ReplicateRequstNode
177-
his node is designed to generate images using Replicate's model API. It supports various aspect ratios, LoRA weights, and provides flexible error handling options.
177+
This node is designed to generate images using Replicate's model API. It supports various aspect ratios, LoRA weights, and provides flexible error handling options.

py/nodes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def INPUT_TYPES(s):
6969
{"image": ([], {"image_upload": True})},
7070
"optional": {
7171
"enabled": ("BOOLEAN", {"default": True, "label_on": "enabled", "label_off": "disabled"}),
72+
"input_image_path": ("STRING",),
7273
}
7374
}
7475

@@ -78,10 +79,12 @@ def INPUT_TYPES(s):
7879
RETURN_NAMES = ("image", "mask", "enabled", "filename", "width", "height")
7980
FUNCTION = "load_image_with_switch"
8081

81-
def load_image_with_switch(self, image, enabled=True):
82+
def load_image_with_switch(self, image, enabled=True, input_image_path=""):
8283
logger.debug("start load image")
8384
if not enabled:
8485
return None, None, enabled, "", 0, 0
86+
if input_image_path:
87+
image = input_image_path
8588
output_image, output_mask = self.load_image(image)
8689
return (output_image, output_mask, enabled, image, output_image.shape[2], output_image.shape[1])
8790

0 commit comments

Comments
 (0)