(self, image, method)
| 449 | CATEGORY = "Masquerade Nodes" |
| 450 | |
| 451 | def convert(self, image, method): |
| 452 | if method == "intensity": |
| 453 | if len(image.shape) > 3 and image.shape[3] == 4: |
| 454 | image = tensor2rgb(image) |
| 455 | return (tensor2mask(image),) |
| 456 | else: |
| 457 | return (tensor2rgba(image)[:,:,:,0],) |
| 458 | |
| 459 | class MixByMask: |
| 460 | def __init__(self): |
nothing calls this directly
no test coverage detected