>>106278327
The problem is that it's generating discoloration outside of what should be edge of the character. For the most part, the bg can be removed with a simple color selection. Unfortunately the extra garbage around the outside matches colors on the inside of the character, so it's more difficult to remove. I'm sure there is some algo you could write to select only those colors that are touching transparent pixels or something.
Which model/LoRA are you using?