Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
@@ -149,6 +149,7 @@ class StreamMultiDiffusion(nn.Module):
|
|
149 |
lora_scale=1.0,
|
150 |
safe_fusing=False,
|
151 |
)
|
|
|
152 |
if use_xformers:
|
153 |
self.pipe.enable_xformers_memory_efficient_attention()
|
154 |
|
|
|
149 |
lora_scale=1.0,
|
150 |
safe_fusing=False,
|
151 |
)
|
152 |
+
self.pipe.to(device=self.device, dtype=self.dtype)
|
153 |
if use_xformers:
|
154 |
self.pipe.enable_xformers_memory_efficient_attention()
|
155 |
|