Skip to content
luahj2 edited this page Mar 23, 2023 · 12 revisions

TODO: write about controlnet here, explain all the different kinds of controlnets available in SH.

ControlNet

ControlNet is a method of extracting edges and pose from an image and then using that to generate an image in Stable Diffusion, ControlNet is hardcoded to use DDIM sampler, so you don't need as many steps as other samplers; about 15 steps is enough to get good images.

there are 9 types of ControlNet in AI Horde.

since each of them are different and for different purposes, I'll use a different image for each of them to illustrate their use.

init strength is also supported for ControlNet.

Canny

this one detects edges but may sometimes pick up unwanted noise.

below is an example:

Original image ControlNet Generated image
sven-d-a4S6KUuLeoM-unsplash tmp8xhv3nxk 00085-504109236

as you can see it changed the image but kept the original composition.

HED

this one retains somewhat less details than canny, mainly useful for recoloring images.

Original image ControlNet Generated image
c-d-x-PDX_a_82obo-unsplash pink_headphones_on_black_background pink_headphones_on_black_background(1)

Depth

the depth model keeps less details, but it'll keep the composition and overall shape the same, it however doesn't keep much details of the background.

this is useful if you don't want to keep the small details of an object and just want the overall shape, example:

Original image ControlNet Generated image
sandy-millar-LhUyLEte7Mg-unsplash 3902_a_matryoshka_doll__masterpiece__best_quality__highly_detailed__intricate_details__analog_photo_1 3901_a_matryoshka_doll__masterpiece__best_quality__highly_detailed__intricate_details__analog_photo_0

Normal

Openpose

can copy pose of an image, but it'll only copy the pose not the details nor the background.

Seg

Scribble

generates an image from a scribble, note however it doesn't recognize colours, so your image has to be black on white.

Fake Scribbles

Hough

Clone this wiki locally