/diffuser

Works and resources related to image generation via diffusers

Primary LanguageHTMLApache License 2.0Apache-2.0

All things diffusion-related

denoising gif

Helpful resources

Set up instructions

Disable NSFW and safety checker

from diffusers.pipelines.stable_diffusion import safety_checker

def sc(self, clip_input, images) :
    return images, [False for i in images]

# edit StableDiffusionSafetyChecker class so that, when called, it just returns the images and an array of True values
safety_checker.StableDiffusionSafetyChecker.forward = sc

Get explainations for generated images

The diffusers-interpret library can generate token attribution and gif of the denoising process.

Better image generation

r/StableDiffusion

Other communities