Update HubertSoft.py
This commit is contained in:
parent
090492b8c3
commit
ee9e6e7994
|
@ -17,7 +17,6 @@ class HubertSoft(SpeechEncoder):
|
|||
if feats.dim() == 2: # double channels
|
||||
feats = feats.mean(-1)
|
||||
assert feats.dim() == 1, feats.dim()
|
||||
feats = feats.view(1, -1)
|
||||
with torch.inference_mode():
|
||||
units = self.model.units(feats)
|
||||
return units.transpose(1,2)
|
||||
|
|
Loading…
Reference in New Issue