Di dieu aya program pikeun ngahasilkeun gambar dumasar kana custom prompt Anjeun "a mountain terrain with blue skies dotted with white, fluffy clouds". 1) Masang paket dina interpreter Python Anjeun dipilih ``` pip install diffusers==0.12.1 torch==1.1 ``` 2) Ayeuna urang siap nyieun pipa difusi stabil `` ` impor torch salaku T ti diffuser ngimpor StableDiffusionPipeline salaku SDP # ngartikeun pipeline jeung prompt = "a mountain terrain with blue skies dotted with white, fluffy clouds" pipeline = SDP.from_interpreted("runwayml/stable-diffusion-v1-5", torch_dtype=T.float16) gambar = pipeline.to hug "(((cudable") Mangga migunakeun pipeline ieu pikeun ngajalankeun gambar langsung dihasilkeun sarta
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence