text_plain_output_5.png text_plain_output_4.png text_plain_output_6.png text_plain_output_3.png text_plain_output_2.png text_plain_output_1.png
from diffusers import StableDiffusionPipeline

import torch
from torch import autocast
from diffusers import StableDiffusionPipeline
model_id = 'CompVis/stable-diffusion-v1-4'
device = 'cuda'
pipe = StableDiffusionPipeline.from_pretrained(model_id, use_auth_token='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')
pipe = pipe.to(device)