Qinghew commited on
Commit
3b3114d
·
verified ·
1 Parent(s): 1e3db0d

Update models/embedding_manager.py

Browse files
Files changed (1) hide show
  1. models/embedding_manager.py +1 -1
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