Skip to content

make edit error #12693

@smthemex

Description

@smthemex

Custom Node Testing

Expected Behavior

When the mask output by the mask editor is optional at the mask input of the next node, there is a bug that outputs a default mask of 64*64
example codes:

 @classmethod
    def execute(cls, images,dw,yolo,short_side,mask=None) -> io.NodeOutput: 
        dw_path=folder_paths.get_full_path("dwpose", dw) if dw != "none" else None
        yolo_path=folder_paths.get_full_path("dwpose", yolo) if yolo != "none" else None
        from .model_loader_utils import get_pose_normal
        images=get_pose_normal(images,os.path.join(folder_paths.base_path,"dwpose"),device,dw_path,yolo_path)
        if mask is not None:
            images = merge_mask_with_pose(mask, images) # casue error here 

The screenshot of the node is as follows:

The error reported by the node shown in the diagram is due to the input mask being set to the default size of 64*64

Image

Actual Behavior

It will appear during the first run, but if it outputs normally once, it will not appear again

Steps to Reproduce

Occasionally, it is speculated that the issue may arise when the "mask" setting is set to optional and the default value is set to None

Debug Logs

Miss

Other

Occasionally,
it is speculated that the issue may arise when the mask is set as optional and the default value is set to None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Potential BugUser is reporting a bug. This should be tested.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions