docs(hel-892): compare case01 declarations and prepare bounded definition reads

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-11-03 11:43:52 +08:00
co-authored by multica-agent
parent 2fa818d62b
commit bacef2eb88
93 changed files with 150482 additions and 0 deletions
@@ -0,0 +1,22 @@
--- 0.21.1:Canny
+++ 8010:Canny
@@ -3,9 +3,9 @@
def define_schema(cls):
return io.Schema(
node_id="Canny",
- display_name="Canny",
+ display_name="Detect Edges (Canny)",
search_aliases=["edge detection", "outline", "contour detection", "line art"],
- category="image/preprocessors",
+ category="image/filters",
essentials_category="Image Tools",
inputs=[
io.Image.Input("image"),
@@ -22,6 +22,6 @@
@classmethod
def execute(cls, image, low_threshold, high_threshold) -> io.NodeOutput:
- output = canny(image.to(device=comfy.model_management.get_torch_device(), dtype=torch.float32).movedim(-1, 1), low_threshold, high_threshold)
+ output = canny(image[..., :3].to(device=comfy.model_management.get_torch_device(), dtype=torch.float32).movedim(-1, 1), low_threshold, high_threshold)
img_out = output[1].to(device=comfy.model_management.intermediate_device(), dtype=comfy.model_management.intermediate_dtype()).repeat(1, 3, 1, 1).movedim(1, -1)
return io.NodeOutput(img_out)
@@ -0,0 +1,11 @@
--- 0.17.0:ImageStitch
+++ 8010:ImageStitch
@@ -5,7 +5,7 @@
return IO.Schema(
node_id="ImageStitch",
search_aliases=["combine images", "join images", "concatenate images", "side by side"],
- display_name="Image Stitch",
+ display_name="Stitch Images",
description="Stitches image2 to image1 in the specified direction.\n"
"If image2 is not provided, returns image1 unchanged.\n"
"Optional spacing can be added between images.",
@@ -0,0 +1,10 @@
--- 0.21.1:PreviewImage
+++ 8010:PreviewImage
@@ -6,6 +6,7 @@
self.compress_level = 1
SEARCH_ALIASES = ["preview", "preview image", "show image", "view image", "display image", "image viewer"]
+ DESCRIPTION = "Preview the images without saving them to the ComfyUI output directory."
@classmethod
def INPUT_TYPES(s):
@@ -0,0 +1,29 @@
--- 0.21.1:SaveImage
+++ 8010:SaveImage
@@ -10,14 +10,18 @@
return {
"required": {
"images": ("IMAGE", {"tooltip": "The images to save."}),
- "filename_prefix": ("STRING", {"default": "ComfyUI", "tooltip": "The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."})
+ "filename_prefix": ("STRING", {
+ "default": "ComfyUI",
+ "tooltip": "The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."
+ })
},
"hidden": {
"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"
},
}
- RETURN_TYPES = ()
+ RETURN_TYPES = ("IMAGE",)
+ RETURN_NAMES = ("images",)
FUNCTION = "save_images"
OUTPUT_NODE = True
@@ -53,4 +57,4 @@
})
counter += 1
- return { "ui": { "images": results } }
+ return { "ui": { "images": results }, "result" : (images,) }