[X] I have searched the existing issues and checked the recent builds/commits of both this extension and the webui
What happened?
In args.py, line 284 you have the following check:
assert np_image.shape[2] == 3
This checks that the input image has 3 channels, and will fail if the input image has 4 channels (ex: an RGBA PNG). However, there doesn't seem to be any downstream issues that occur if an image has 4 channels (by removing that check I still get a coherent result).
I think the check should be changed to:
assert np_image.shape[2] >= 3
That way the whole pipeline won't fail if an input image has an alpha channel.
Is there an existing issue for this?
What happened?
In args.py, line 284 you have the following check:
This checks that the input image has 3 channels, and will fail if the input image has 4 channels (ex: an RGBA PNG). However, there doesn't seem to be any downstream issues that occur if an image has 4 channels (by removing that check I still get a coherent result).
I think the check should be changed to:
That way the whole pipeline won't fail if an input image has an alpha channel.
Steps to reproduce the problem
Specify an image with alpha as input.
What should have happened?
No assert if the image has alpha.
Commit where the problem happens
Latest
What browsers do you use to access the UI ?
No response
Command Line Arguments
List of enabled extensions
N/A
Console logs
Additional information
No response