Anvita Pandit commited on
Commit
23b5ef8
·
1 Parent(s): 9bbb30d

Fix torch.load weights_only for PyTorch 2.6+

Browse files
Files changed (1) hide show
  1. vampnet/vampnet/beats.py +1 -1
vampnet/vampnet/beats.py CHANGED
@@ -204,7 +204,7 @@ class WaveBeat(BeatTracker):
204
  def __init__(self, ckpt_path: str = "checkpoints/wavebeat", device: str = "cpu"):
205
  from wavebeat.dstcn import dsTCNModel
206
 
207
- model = dsTCNModel.load_from_checkpoint(ckpt_path, map_location=torch.device(device))
208
  model.eval()
209
 
210
  self.device = device
 
204
  def __init__(self, ckpt_path: str = "checkpoints/wavebeat", device: str = "cpu"):
205
  from wavebeat.dstcn import dsTCNModel
206
 
207
+ model = dsTCNModel.load_from_checkpoint(ckpt_path, map_location=torch.device(device), weights_only=False)
208
  model.eval()
209
 
210
  self.device = device