Spaces:
Running on Zero
Running on Zero
Update models/embedding_manager.py
Browse files
models/embedding_manager.py
CHANGED
|
@@ -123,7 +123,7 @@ class EmbeddingManagerId_adain(nn.Module):
|
|
| 123 |
|
| 124 |
|
| 125 |
def load(self, ckpt_path):
|
| 126 |
-
ckpt = torch.load(ckpt_path, map_location='cuda')
|
| 127 |
if ckpt.get("name_projection_layer") is not None:
|
| 128 |
self.name_projection_layer = ckpt.get("name_projection_layer").float()
|
| 129 |
|
|
|
|
| 123 |
|
| 124 |
|
| 125 |
def load(self, ckpt_path):
|
| 126 |
+
ckpt = torch.load(ckpt_path, map_location='cuda', weights_only=False)
|
| 127 |
if ckpt.get("name_projection_layer") is not None:
|
| 128 |
self.name_projection_layer = ckpt.get("name_projection_layer").float()
|
| 129 |
|