 in combination with unet to denoise the encoded image latents.


safety_checker (StableDiffusionSafetyChecker) —
Classification module that estimates whether generated images could be considered offensive or harmful.
Please, refer to the model card for details.


feature_extractor (CLIPFeatureExtractor) —
Model that extracts features from generated images to be used as inputs for the safety_checker.


with_to_k (bool) —
Whether to edit the key