[FIX] The diffusion pipeline returned dtype error

#8
by Pranavv - opened
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -38,7 +38,7 @@ pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
38
  "runwayml/stable-diffusion-v1-5",
39
  controlnet=controlnet,
40
  safety_checker=None,
41
- torch_dtype=torch.float16
42
  )
43
 
44
  pipe.enable_xformers_memory_efficient_attention()
 
38
  "runwayml/stable-diffusion-v1-5",
39
  controlnet=controlnet,
40
  safety_checker=None,
41
+ torch_dtype=torch.float32
42
  )
43
 
44
  pipe.enable_xformers_memory_efficient_attention()