-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Open
Labels
Potential BugUser is reporting a bug. This should be tested.User is reporting a bug. This should be tested.
Description
Custom Node Testing
- I have tried disabling custom nodes and the issue persists (see how to disable custom nodes if you need help)
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
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
MissOther
Occasionally,
it is speculated that the issue may arise when the mask is set as optional and the default value is set to None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Potential BugUser is reporting a bug. This should be tested.User is reporting a bug. This should be tested.