Update celle_main.py
Browse files- 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=
|
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):
|