Spaces:
Running
on
Zero
Running
on
Zero
wli3221134
commited on
Update model.py
Browse files
model.py
CHANGED
@@ -13,7 +13,7 @@ class Wav2Vec2BERT_Llama(nn.Module):
|
|
13 |
super().__init__()
|
14 |
|
15 |
# 1. 加载预训练模型
|
16 |
-
self.wav2vec2bert = Wav2Vec2BertModel.from_pretrained("facebook/w2v-bert-2.0")
|
17 |
|
18 |
# 2. 选择性冻结参数
|
19 |
for name, param in self.wav2vec2bert.named_parameters():
|
|
|
13 |
super().__init__()
|
14 |
|
15 |
# 1. 加载预训练模型
|
16 |
+
self.wav2vec2bert = Wav2Vec2BertModel.from_pretrained("facebook/w2v-bert-2.0", output_hidden_states=True)
|
17 |
|
18 |
# 2. 选择性冻结参数
|
19 |
for name, param in self.wav2vec2bert.named_parameters():
|