cd14 commited on
Commit
1f98dd6
1 Parent(s): 3bde4f4

Updated model load_state_dict() in FunctionsModelSA_V1.py

Browse files
Files changed (1) hide show
  1. 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