Spaces:
Runtime error
Runtime error
Updated model load_state_dict() in FunctionsModelSA_V1.py
Browse files- FunctionsModelSA_V1.py +1 -1
FunctionsModelSA_V1.py
CHANGED
@@ -130,7 +130,7 @@ class ToneTagger(pl.LightningModule):
|
|
130 |
|
131 |
# LOAD IN PRE TRAINED MODEL WITH WEIGHTS
|
132 |
model=ToneTagger(8) # load up the model archetecture with 8 different tones
|
133 |
-
model.load_state_dict(torch.load("models/SAMODEL")) # populate the weights of the model
|
134 |
model.eval()
|
135 |
|
136 |
|
|
|
130 |
|
131 |
# LOAD IN PRE TRAINED MODEL WITH WEIGHTS
|
132 |
model=ToneTagger(8) # load up the model archetecture with 8 different tones
|
133 |
+
model.load_state_dict(torch.load("models/SAMODEL"), strict=False) # populate the weights of the model
|
134 |
model.eval()
|
135 |
|
136 |
|