Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,8 +21,8 @@ class dotdict(dict):
|
|
| 21 |
|
| 22 |
class InferRunner:
|
| 23 |
def __init__(self, device):
|
| 24 |
-
self.vae = AutoencoderKL(**vae_config)
|
| 25 |
vae_config = json.load(open("ckpts/ldm/vae_config.json"))
|
|
|
|
| 26 |
vae_weights = torch.load("ckpts/ldm/pytorch_model_vae.bin", map_location="cpu")
|
| 27 |
self.vae.load_state_dict(vae_weights)
|
| 28 |
self.vae = self.vae.to(device)
|
|
|
|
| 21 |
|
| 22 |
class InferRunner:
|
| 23 |
def __init__(self, device):
|
|
|
|
| 24 |
vae_config = json.load(open("ckpts/ldm/vae_config.json"))
|
| 25 |
+
self.vae = AutoencoderKL(**vae_config)
|
| 26 |
vae_weights = torch.load("ckpts/ldm/pytorch_model_vae.bin", map_location="cpu")
|
| 27 |
self.vae.load_state_dict(vae_weights)
|
| 28 |
self.vae = self.vae.to(device)
|