Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
@@ -72,7 +72,6 @@ class StreamMultiDiffusion(nn.Module):
|
|
72 |
self.dtype = dtype
|
73 |
self.seed = seed
|
74 |
self.sd_version = sd_version
|
75 |
-
print(self.dtype, self.device)
|
76 |
|
77 |
self.autoflush = autoflush
|
78 |
self.default_mask_std = default_mask_std
|
@@ -154,7 +153,7 @@ class StreamMultiDiffusion(nn.Module):
|
|
154 |
self.pipe.enable_xformers_memory_efficient_attention()
|
155 |
|
156 |
self.vae = (
|
157 |
-
AutoencoderTiny.from_pretrained('madebyollin/taesd').to(device=self.device
|
158 |
if use_tiny_vae else self.pipe.vae
|
159 |
)
|
160 |
# self.tokenizer = self.pipe.tokenizer
|
|
|
72 |
self.dtype = dtype
|
73 |
self.seed = seed
|
74 |
self.sd_version = sd_version
|
|
|
75 |
|
76 |
self.autoflush = autoflush
|
77 |
self.default_mask_std = default_mask_std
|
|
|
153 |
self.pipe.enable_xformers_memory_efficient_attention()
|
154 |
|
155 |
self.vae = (
|
156 |
+
AutoencoderTiny.from_pretrained('madebyollin/taesd', torch_dtype=self.dtype).to(device=self.device)
|
157 |
if use_tiny_vae else self.pipe.vae
|
158 |
)
|
159 |
# self.tokenizer = self.pipe.tokenizer
|