-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an example Google Colab / Jupyter Notebook file #9
Comments
|
@0xdevalias Hello there, I hope is it fine for you that I kind of created a "minified" version of your colab which works fine with a T4 using xformers. https://colab.research.google.com/drive/1wzI9nt8dYqq47I1Y-WvOAiO01y7EBoiO?usp=sharing |
Here is a Colab/Gradio setup to play with the depth model: https://github.com/backnotprop/Colab-Stable-Diffusion-2-Depth-UI/tree/main |
@inflamously It's not my colab, just one I found on another repo and wanted to ensure was linked and accessible here :) |
|
from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
import torch
model_id = "stabilityai/stable-diffusion-2"
# Use the Euler scheduler here instead
scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, revision="fp16", torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "beautiful gaze"
image = pipe(prompt, height=768, width=768).images[0]
|
Alternatively, run |
Similar to:
The text was updated successfully, but these errors were encountered: