Spaces:
Runtime error
Runtime error
Update kugelaudio_open/models/tokenizer.py
Browse files
kugelaudio_open/models/tokenizer.py
CHANGED
|
@@ -758,7 +758,7 @@ class TokenizerEncoder(nn.Module):
|
|
| 758 |
)
|
| 759 |
|
| 760 |
self.stages = nn.ModuleList()
|
| 761 |
-
dp_rates =
|
| 762 |
cur = 0
|
| 763 |
|
| 764 |
for i in range(len(self.depths)):
|
|
@@ -895,7 +895,7 @@ class TokenizerDecoder(nn.Module):
|
|
| 895 |
)
|
| 896 |
|
| 897 |
self.stages = nn.ModuleList()
|
| 898 |
-
dp_rates =
|
| 899 |
cur = 0
|
| 900 |
|
| 901 |
# Create stages in the same order as the original model
|
|
|
|
| 758 |
)
|
| 759 |
|
| 760 |
self.stages = nn.ModuleList()
|
| 761 |
+
dp_rates = torch.linspace(0, drop_path_rate, sum(self.depths)).tolist()
|
| 762 |
cur = 0
|
| 763 |
|
| 764 |
for i in range(len(self.depths)):
|
|
|
|
| 895 |
)
|
| 896 |
|
| 897 |
self.stages = nn.ModuleList()
|
| 898 |
+
dp_rates = torch.linspace(0, drop_path_rate, sum(self.depths)).tolist()
|
| 899 |
cur = 0
|
| 900 |
|
| 901 |
# Create stages in the same order as the original model
|