Starting in diffusers 0.5.1
(released yesterday) there’s a simpler way to disable the safety filter:
pipeline = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", safety_checker=None)
This is only meant for experimentation and research, like what we are doing here trying to learn. Please, do not use it in production services, demos or anything facing the public! (You might be breaching the license you accepted).