Skip to content

Instantly share code, notes, and snippets.

@astoeckl
Last active October 9, 2022 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astoeckl/0edcbcfd4ea3914b82ff76ab0663a595 to your computer and use it in GitHub Desktop.
Save astoeckl/0edcbcfd4ea3914b82ff76ab0663a595 to your computer and use it in GitHub Desktop.
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=YOUR_TOKEN)
pipe = pipe.to("gpu")
image = pipe(titeltext).images[0]
image.save("news.jpg")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment