philschmid HF staff commited on
Commit
d495aeb
·
1 Parent(s): 394463f

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -0
handler.py CHANGED
@@ -16,6 +16,7 @@ if device.type != 'cuda':
16
  raise ValueError("need to run on GPU")
17
  # set mixed precision dtype
18
  dtype = torch.bfloat16 if torch.cuda.get_device_capability()[0] == 8 else torch.float16
 
19
 
20
  # controlnet mapping for controlnet id and control hinter
21
  CONTROLNET_MAPPING = {
 
16
  raise ValueError("need to run on GPU")
17
  # set mixed precision dtype
18
  dtype = torch.bfloat16 if torch.cuda.get_device_capability()[0] == 8 else torch.float16
19
+ dtype = torch.float32
20
 
21
  # controlnet mapping for controlnet id and control hinter
22
  CONTROLNET_MAPPING = {