philschmid HF staff commited on
Commit
6d64c7d
1 Parent(s): a62fef4

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -16,7 +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
- dtype = torch.float32
20
 
21
  # controlnet mapping for controlnet id and control hinter
22
  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.bfloat16
20
 
21
  # controlnet mapping for controlnet id and control hinter
22
  CONTROLNET_MAPPING = {