We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from diffusers import StableDiffusionPipeline
model_id = "runwayml/stable-diffusion-v1-5" pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, revision="fp16") pipe = pipe.to(device)
prompt = "a photo of an astronaut riding a horse on mars" image = pipe(prompt).images[0]
transformers/models/clip/modeling_clip.py:257 in forward
The text was updated successfully, but these errors were encountered:
add this one with torch.autocast("cuda"):
with torch.autocast("cuda"):
Sorry, something went wrong.
No branches or pull requests
from diffusers import StableDiffusionPipeline
model_id = "runwayml/stable-diffusion-v1-5"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, revision="fp16")
pipe = pipe.to(device)
prompt = "a photo of an astronaut riding a horse on mars"
image = pipe(prompt).images[0]
transformers/models/clip/modeling_clip.py:257 in forward
The text was updated successfully, but these errors were encountered: