Update model.py
Browse files
model.py
CHANGED
@@ -1054,11 +1054,13 @@ class Echo(nn.Module):
|
|
1054 |
for name, module in self.encoder.named_modules():
|
1055 |
if isinstance(module, (rotary)):
|
1056 |
module.return_f0(f0)
|
|
|
1057 |
|
1058 |
for name, module in self.decoder.named_modules():
|
1059 |
if isinstance(module, (rotary)):
|
1060 |
module.return_f0(f0)
|
1061 |
-
|
|
|
1062 |
def set_alignment_head(self, dump: bytes):
|
1063 |
array = np.frombuffer(
|
1064 |
gzip.decompress(base64.b85decode(dump)), dtype=bool).copy()
|
|
|
1054 |
for name, module in self.encoder.named_modules():
|
1055 |
if isinstance(module, (rotary)):
|
1056 |
module.return_f0(f0)
|
1057 |
+
module.update_base(f0)
|
1058 |
|
1059 |
for name, module in self.decoder.named_modules():
|
1060 |
if isinstance(module, (rotary)):
|
1061 |
module.return_f0(f0)
|
1062 |
+
module.update_base(f0)
|
1063 |
+
|
1064 |
def set_alignment_head(self, dump: bytes):
|
1065 |
array = np.frombuffer(
|
1066 |
gzip.decompress(base64.b85decode(dump)), dtype=bool).copy()
|