class HSVThresholdMask:
...
RETURN_TYPES = ("IMAGE",)
...
def hsv_threshold(self, image: torch.Tensor, low_threshold: float, high_threshold: float, hsv_channel: str):
...
mask = cv2.inRange(hsv_image[:, :, channel], low_threshold, high_threshold)
tensor = torch.from_numpy(mask).float() / 255.
result[b] = tensor
return (result,)
is this supposed to return a Mask or an Image? it's not a proper Image.
is this supposed to return a Mask or an Image? it's not a proper Image.