ironjr commited on
Commit
0bbeaec
·
verified ·
1 Parent(s): d733ffe

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +2 -2
model.py CHANGED
@@ -38,7 +38,7 @@ class StableMultiDiffusionPipeline(nn.Module):
38
  def __init__(
39
  self,
40
  device: torch.device,
41
- dtype: torch.dtype = torch.float16,
42
  sd_version: Literal['1.5', '2.0', '2.1', 'xl'] = '1.5',
43
  hf_key: Optional[str] = None,
44
  lora_key: Optional[str] = None,
@@ -128,7 +128,7 @@ class StableMultiDiffusionPipeline(nn.Module):
128
  model_key = hf_key
129
  else:
130
  model_key = 'runwayml/stable-diffusion-v1-5'
131
- variant = 'fp16'
132
  lora_key = 'latent-consistency/lcm-lora-sdv1-5'
133
  lora_weight_name = 'pytorch_lora_weights.safetensors'
134
  # elif self.sd_version == 'xl':
 
38
  def __init__(
39
  self,
40
  device: torch.device,
41
+ dtype: torch.dtype = torch.float32,
42
  sd_version: Literal['1.5', '2.0', '2.1', 'xl'] = '1.5',
43
  hf_key: Optional[str] = None,
44
  lora_key: Optional[str] = None,
 
128
  model_key = hf_key
129
  else:
130
  model_key = 'runwayml/stable-diffusion-v1-5'
131
+ # variant = 'fp16'
132
  lora_key = 'latent-consistency/lcm-lora-sdv1-5'
133
  lora_weight_name = 'pytorch_lora_weights.safetensors'
134
  # elif self.sd_version == 'xl':