Commit 476d543f authored by comfyanonymous's avatar comfyanonymous
Browse files
parent 2525fcd3
......@@ -187,12 +187,11 @@ class MaskComposite:
source_portion = source[:visible_height, :visible_width]
destination_portion = destination[top:bottom, left:right]
match operation:
case "multiply":
if operation == "multiply":
output[top:bottom, left:right] = destination_portion * source_portion
case "add":
elif operation == "add":
output[top:bottom, left:right] = destination_portion + source_portion
case "subtract":
elif operation == "subtract":
output[top:bottom, left:right] = destination_portion - source_portion
output = torch.clamp(output, 0.0, 1.0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment