t-safe-for-work" (nsfw) content, according to the safety_checker`.


Function invoked when calling the pipeline for generation.

Examples:


	Copied
>>> import requests
>>> import torch
>>> from PIL import Image
>>> from io import BytesIO

>>> from diffusers import AltDiffusionImg2ImgPipeline

>>> device = "cuda"
>>> model_id_or_path = "BAAI/AltDiffusion-m9"
>>> pipe = AltDiffusionImg2ImgPipeline.from_pretrained(model_id_or_path, torch_dtype=to