davesalvi commited on
Commit
ec1c6be
·
1 Parent(s): 023078c

24000 model

Browse files
Files changed (1) hide show
  1. script.py +3 -3
script.py CHANGED
@@ -61,8 +61,8 @@ model = LCNN(return_emb=False).to(device)
61
  # model_path = './checkpoints/LCNN_ALL_DATA_HI_FREQ_22050.pth'
62
 
63
  # model_path = './checkpoints/LCNN_ALL_DATA_FS_16000.pth'
64
- model_path = './checkpoints/LCNN_ALL_DATA_FS_22050.pth'
65
- # model_path = './checkpoints/LCNN_ALL_DATA_FS_24000.pth'
66
 
67
  model.load_state_dict(torch.load(model_path, map_location=device))
68
 
@@ -133,7 +133,7 @@ for el in tqdm.tqdm(dataset_remote):
133
 
134
  # RUNNING ON HUGGINGFACE
135
  file_like = io.BytesIO(el["audio"]["bytes"])
136
- tensor, sr = preprocess(file_like, target_sr=22050)
137
  # # RUNNING LOCALLY
138
  # tensor = preprocess(el)
139
 
 
61
  # model_path = './checkpoints/LCNN_ALL_DATA_HI_FREQ_22050.pth'
62
 
63
  # model_path = './checkpoints/LCNN_ALL_DATA_FS_16000.pth'
64
+ # model_path = './checkpoints/LCNN_ALL_DATA_FS_22050.pth'
65
+ model_path = './checkpoints/LCNN_ALL_DATA_FS_24000.pth'
66
 
67
  model.load_state_dict(torch.load(model_path, map_location=device))
68
 
 
133
 
134
  # RUNNING ON HUGGINGFACE
135
  file_like = io.BytesIO(el["audio"]["bytes"])
136
+ tensor, sr = preprocess(file_like, target_sr=24000)
137
  # # RUNNING LOCALLY
138
  # tensor = preprocess(el)
139