AUTOMATIC1111 / stable-diffusion-webui-pixelization

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

Color and brightness issue- #18

Open demiguelm opened 1 year ago

demiguelm commented 1 year ago
image

Yeah, that's happen to me for a while. Any help?

carloball commented 1 year ago

I have the same issue

demiguelm commented 1 year ago

I have noticed that it does it especially in the darkest images, as if it made a kind of "auto tone" prior to pixelization. In medium bright or very bright images it is less visible.

dustyatticgames commented 1 year ago

I made a PR that adds options to copy hue and saturation from the original image. You can wait for that to be merged or install the extension from my repo: https://github.com/dustyatticgames/stable-diffusion-webui-pixelization

demiguelm commented 1 year ago
image

Uhm...

demiguelm commented 1 year ago
image

I get this IndexError and when works, resusoults are not what expected.

image

Seems like is the brightness what is messing around

demiguelm commented 1 year ago

one more example:

image
dustyatticgames commented 1 year ago

I see what you mean. I think you're right, the model seems to be struggling with darker colors. My fix was to address a different issue I was seeing. Attached is an example of what I was trying to solve (and what I thought you were experiencing but I was wrong). I did push a fix for the "image index out of range" issue you experienced with my change if you decide to use it.

King

demiguelm commented 1 year ago

I see what you mean. I think you're right, the model seems to be struggling with darker colors. My fix was to address a different issue I was seeing. Attached is an example of what I was trying to solve (and what I thought you were experiencing but I was wrong). I did push a fix for the "image index out of range" issue you experienced with my change if you decide to use it.

King

Thanks! The color fix is really great. I more or less get around the problem of dark colors by pre-treating in PS, but it only works for "slightly" dark images.

2blackbar commented 9 months ago

Its fixed , each image has a bit less or more issues so i left finetuning for the user, dark areas are affected the most https://github.com/AUTOMATIC1111/stable-diffusion-webui-pixelization/issues/22#issuecomment-1730718435