Skip to content

I'm having some trouble getting SD to work as I intent with greyscale

Hi, I'm doing some tests with black and white colorization, I'm using AUTOMATIC1111 version of SD, specifically the img2img tool, I'm trying to colorize greyscale photos, but with mixed results; just now I found this on the console after 2 hours using the GUI, and I'm sure it has something to do with my problems:

Grayscale input: True

What does that mean? Is SD aware of greyscale images? how do I prevent the default behavior of SD if there is one (given that it seems to not work that well)

0 points1 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 33% up
Kind
Text
ID
xp0775

Author

28
posts
450
comments
3
media
View profile

1 comment

The best method using pure SD is to draw color over the grayscale image before running it through img2img.

I got some success trying the alternate img2img to attempt regenerating the same image from seed with "full color, colorized" tagged on the front of it, but it caused more problems than it fixed. There are a coupler of colorizer GANs out there, but I could not make them load in Automatic1111 (issues with dependencies it looks like, but I didn't delve into it).

My advice would be to run the image through a colorizer first before putting it into stable diffusion. SD really wasn't trained for colorization, so it doesn't even try to do it in most cases. There are tons of colorizers already available as dedicated AI software, both through websites where you upload the image as well as APIs that you can run locally. There's no reason that you need to force yourself to only using SD in this case.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.