Update utils.py

This commit is contained in:
YuriHead 2023-04-14 10:54:34 +08:00 committed by GitHub
parent 262f5ef18a
commit 7a03f1bec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ def get_hubert_content(hmodel, wav_16k_tensor):
inputs = {
"source": feats.to(wav_16k_tensor.device),
"padding_mask": padding_mask.to(wav_16k_tensor.device),
"output_layer": 9, # layer 9
"output_layer": 12, # layer 12
}
with torch.no_grad():
logits = hmodel.extract_features(**inputs)