Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -35,7 +35,7 @@ import torch
35
 
36
  model_id = "runwayml/stable-diffusion-v1-5"
37
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, revision="fp16")
38
- pipe = pipe.to("cuda")
39
 
40
  prompt = "a photo of an astronaut riding a horse on mars"
41
  image = pipe(prompt).images[0]
 
35
 
36
  model_id = "runwayml/stable-diffusion-v1-5"
37
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, revision="fp16")
38
+ pipe = pipe.to("cuda") # if you have an intel dGPU, please install [intel_extension_for_pytorch](https://github.com/intel/intel-extension-for-pytorch) and use device = "xpu" instead of "cuda"
39
 
40
  prompt = "a photo of an astronaut riding a horse on mars"
41
  image = pipe(prompt).images[0]