Skip to content

Works and resources related to image generation via diffusers

License

Notifications You must be signed in to change notification settings

TomPham97/diffuser

Repository files navigation

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