Skip to content

Commit

Permalink
add SC w2v-bert 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenvulong committed Dec 24, 2023
1 parent a1870cf commit 16d3c23
Show file tree
Hide file tree
Showing 4 changed files with 663 additions and 30 deletions.
6 changes: 3 additions & 3 deletions models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .lcnn import *
from .senet import *
from .occm import *
# from .lcnn import *
# from .senet import *
# from .occm import *
2 changes: 1 addition & 1 deletion models/sslassist.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SSLModel(nn.Module):
def __init__(self,device):
super(SSLModel, self).__init__()

cp_path = '/datac/longnv/SSL_Anti-spoofing/pretrained/xlsr2_300m.pt' # Change the pre-trained XLSR model path.
cp_path = '/home/longnv/BTS-Encoder-ASVspoof/demo2023/pretrained/xlsr2_300m.pt' # Change the pre-trained XLSR model path.
model, cfg, task = fairseq.checkpoint_utils.load_model_ensemble_and_task([cp_path])
self.model = model[0]
self.device=device
Expand Down
Loading

0 comments on commit 16d3c23

Please sign in to comment.