Kimata commited on
Commit
9fd6e55
·
1 Parent(s): d8bd9d5

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +2 -2
pipeline.py CHANGED
@@ -174,9 +174,9 @@ def load_audio_model():
174
 
175
  model = RawNet(d_args = d_args, device='cpu')
176
 
177
- #Load pretrained ckpt.
178
  model_dict = model.state_dict()
179
- ckpt = torch.load('pre_trained_DF_RawNet2.pth', map_location=torch.device('cpu'))
180
  model.load_state_dict(ckpt, model_dict)
181
  return model
182
 
 
174
 
175
  model = RawNet(d_args = d_args, device='cpu')
176
 
177
+ #Load ckpt.
178
  model_dict = model.state_dict()
179
+ ckpt = torch.load('RawNet2.pth', map_location=torch.device('cpu'))
180
  model.load_state_dict(ckpt, model_dict)
181
  return model
182