Closed jamesWalker55 closed 1 year ago
You also couldn't then load and manipulate alpha PNG images as raster masks, or overlay elements. There is a nodes to extract and compile RGB. The a simple RGBA to RGB node would be more convenient.
What's the name of the node to convert RGBA to RGB? I couldn't find it in the nodes list.
What's the name of the node to convert RGBA to RGB? I couldn't find it in the nodes list.
There is currently RGB channel separation and compilation. I'll add a node for RGBA to RGB, but I think retaining RGBA is important at load time as you may not be immediately diffusing it.
I've added a RGBA to RGB node
When using an RGBA image as the input to a "Apply ControlNet" node, the KSampler node raises an error:
This occurs when using
WAS_Load_Image_Batch
as the image loader. It loads images in their original format, which may lead to different number of channels if the image isn't in RGB format. The tensor will then cause the above error in KSampler.This commit adds
.convert('RGB')
in theWAS_Load_Image_Batch
class to ensure the loaded images are in RGB format.