Spaces:
Running
on
Zero
Running
on
Zero
adamelliotfields
commited on
Commit
•
c60d9a3
1
Parent(s):
b7bdcdb
Fix VAE
Browse files- lib/loader.py +1 -1
lib/loader.py
CHANGED
@@ -129,7 +129,7 @@ class Loader:
|
|
129 |
if self.vae is None:
|
130 |
self.vae = AutoencoderKL.from_pretrained(
|
131 |
Config.VAE_MODEL,
|
132 |
-
torch_dtype=torch.
|
133 |
).to(self.device)
|
134 |
|
135 |
kwargs["vae"] = self.vae
|
|
|
129 |
if self.vae is None:
|
130 |
self.vae = AutoencoderKL.from_pretrained(
|
131 |
Config.VAE_MODEL,
|
132 |
+
torch_dtype=torch.float16,
|
133 |
).to(self.device)
|
134 |
|
135 |
kwargs["vae"] = self.vae
|