matospiso commited on
Commit
5266a6c
1 Parent(s): 2c4b5b9

Update README.md

Browse files

Add missing line to assign pipe to GPU, Image-to-image example now works standalone (was throwing "LayerNormKernelImpl" not implemented for 'Half' error)

Files changed (1) hide show
  1. README.md +1 -0
README.md CHANGED
@@ -97,6 +97,7 @@ from diffusers import AutoPipelineForImage2Image
97
  from diffusers.utils import load_image
98
 
99
  pipe = AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16")
 
100
 
101
  init_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png").resize((512, 512))
102
 
 
97
  from diffusers.utils import load_image
98
 
99
  pipe = AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16")
100
+ pipe.to("cuda")
101
 
102
  init_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png").resize((512, 512))
103