AUTOMATIC1111 / stable-diffusion-webui-pixelization

stable-diffusion-webui-pixelization
MIT License
550 stars 72 forks source link

Error with alpha chenel #30

Open Taruu opened 2 weeks ago

Taruu commented 2 weeks ago

I revive Pytorch RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 0

in postprocessing_pixelization.py need add pp.image = pp.image.convert('RGB') after pp.resize

How to fix find there: https://stackoverflow.com/questions/58496858/pytorch-runtimeerror-the-size-of-tensor-a-4-must-match-the-size-of-tensor-b