MCPcopy Create free account

hub / github.com/WainWong/ComfyUI-Loop-image / functions

Functions42 in github.com/WainWong/ComfyUI-Loop-image

↓ 3 callersFunctionMakeSmartType
(t)
tools.py:1
↓ 2 callersMethodresize_tensor
调整tensor尺寸的辅助函数
mask_split.py:192
↓ 1 callersMethodINPUT_TYPES
(cls)
mask_split.py:12
↓ 1 callersMethodcollect_contained
(self, node_id, upstream, contained)
flow_control.py:189
↓ 1 callersMethodcollect_contained
(self, node_id, upstream, contained)
flow_control.py:443
↓ 1 callersMethodexplore_dependencies
(self, node_id, dynprompt, upstream, parent_ids)
flow_control.py:156
↓ 1 callersMethodexplore_dependencies
(self, node_id, dynprompt, upstream, parent_ids)
flow_control.py:412
↓ 1 callersMethodexplore_output_nodes
探索并添加输出节点的连接
flow_control.py:175
↓ 1 callersMethodexplore_output_nodes
(self, dynprompt, upstream, output_nodes, parent_ids)
flow_control.py:430
↓ 1 callersMethodfind_top_left_point
找到mask中最左上角的点
mask_split.py:27
↓ 1 callersMethodinitialize_results
初始化结果张量,确保与MaskSplit输出格式一致
flow_control.py:215
↓ 1 callersMethodresize_to_match
调整图片尺寸以匹配目标shape
flow_control.py:65
↓ 1 callersMethodstandardize_input
标准化输入格式 - image: [H,W,C] -> [1,H,W,C] - processed_images: [...] -> [B,H,W,C] - masks: [...] -> [B,H,W]
mask_split.py:161
↓ 1 callersMethodstandardize_input
标准化输入格式 images: 确保是4D tensor [B,H,W,C] masks: 确保是3D tensor [B,H,W] 如果images是单张图片,会扩展到与masks相同的批次大小
flow_control.py:32
↓ 1 callersMethodstandardize_input
标准化输入格式 image: 确保是4D tensor [B,H,W,C] mask: 确保是3D tensor [B,H,W]
flow_control.py:197
MethodINPUT_TYPES
(cls)
mask_split.py:145
MethodINPUT_TYPES
(cls)
flow_control.py:13
MethodINPUT_TYPES
(cls)
flow_control.py:130
MethodINPUT_TYPES
(cls)
flow_control.py:344
MethodINPUT_TYPES
(cls)
flow_control.py:389
MethodINPUT_TYPES
预定义100个隐藏的lazy输入
flow_control.py:541
FunctionVariantSupport
()
tools.py:14
Method__init__
(self)
mask_split.py:8
Method__init__
(self)
mask_split.py:141
Method__init__
(self)
flow_control.py:9
Method__init__
(self)
flow_control.py:126
Method__init__
(self)
flow_control.py:340
Method__init__
(self)
flow_control.py:385
Method__init__
(self)
flow_control.py:537
Method__ne__
(self, other)
tools.py:7
FunctionbeforeRegisterNodeDef
(nodeType, nodeData, app)
web/node/dynamicnode.js:10
Methodcheck_lazy_status
检查当前迭代需要的输入和默认值
flow_control.py:565
Functiondecorator
(cls)
tools.py:15
Methodindex_switch
根据当前迭代次数选择对应的输入值
flow_control.py:583
Methodloop_close
(self, flow_control, current_image, max_iterations, current_mask=None, iteration_count=0, dy
flow_control.py:451
Methodloop_open
(self, image, max_iterations, mask=None, unique_id=None, iteration_count=0, previous_image=N
flow_control.py:367
Methodmerge_masked_images
合并处理后的图像
mask_split.py:216
Functionnew_input_types
(*args, **kwargs)
tools.py:18
Methodsegment_mask
使用OpenCV快速分割蒙版并处理图像
mask_split.py:41
Functionvalidate_inputs
(input_types)
tools.py:35
Methodwhile_loop_close
(self, flow_control, current_image, current_mask, max_iterations, pass_back=False, it
flow_control.py:238
Methodwhile_loop_open
(self, segmented_images, segmented_masks, unique_id=None, iteration_count=0, previous_
flow_control.py:88