Emaad commited on
Commit
b42f002
1 Parent(s): 8580f27

Update celle_main.py

Browse files
Files changed (1) hide show
  1. celle_main.py +1 -1
celle_main.py CHANGED
@@ -198,7 +198,7 @@ class CELLE_trainer(pl.LightningModule):
198
  if k.startswith(ik):
199
  # print("Deleting key {} from state_dict.".format(k))
200
  del ckpt[k]
201
- self.load_state_dict(ckpt, strict=True)
202
  print(f"Restored from {path}")
203
 
204
  def forward(self, text, condition, target, return_loss=True):
 
198
  if k.startswith(ik):
199
  # print("Deleting key {} from state_dict.".format(k))
200
  del ckpt[k]
201
+ self.load_state_dict(ckpt, strict=False)
202
  print(f"Restored from {path}")
203
 
204
  def forward(self, text, condition, target, return_loss=True):