Repository navigation
Feature/speech pipeline normalization - #106
Open
HoseinNasiriShahraki wants to merge 17 commits into
Open
HoseinNasiriShahraki wants to merge 17 commits into
HoseinNasiriShahraki wants to merge 17 commits into
Conversation
There was a problem hiding this comment.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
|
|
||
| def attention(self, query, key, value, mask=None): | ||
| # reshape [b, d, t] -> [b, n_h, t, d_k] | ||
| b, d, t_s, t_t = (*key.size(), query.size(2)) |
Comment on lines
+583
to
+591
| x1, logabsdet = piecewise_rational_quadratic_transform( | ||
| x1, | ||
| unnormalized_widths, | ||
| unnormalized_heights, | ||
| unnormalized_derivatives, | ||
| inverse=reverse, | ||
| tails="linear", | ||
| tail_bound=self.tail_bound, | ||
| ) |
| if len(sens_out[-1].split(" ")) <= 2: | ||
| sens_out[-2] = sens_out[-2] + " " + sens_out[-1] | ||
| sens_out.pop(-1) | ||
| except: |
| if len(sens_out[-1]) <= 2: | ||
| sens_out[-2] = sens_out[-2] + " " + sens_out[-1] | ||
| sens_out.pop(-1) | ||
| except: |
| if len(sens_out[-1].split(" ")) <= 2: | ||
| sens_out[-2] = sens_out[-2] + " " + sens_out[-1] | ||
| sens_out.pop(-1) | ||
| except: |
| if len(sens_out[-1]) <= 2: | ||
| sens_out[-2] = sens_out[-2] + " " + sens_out[-1] | ||
| sens_out.pop(-1) | ||
| except: |
Comment on lines
+58
to
+62
| # if isflow: | ||
| # cond_layer = torch.nn.Conv1d(256, 2*hidden_channels*n_layers, 1) | ||
| # self.cond_pre = torch.nn.Conv1d(hidden_channels, 2*hidden_channels, 1) | ||
| # self.cond_layer = weight_norm(cond_layer, name='weight') | ||
| # self.gin_channels = 256 |
Comment on lines
+79
to
+82
| # if torch.min(y) < -1.: | ||
| # print('min value is ', torch.min(y)) | ||
| # if torch.max(y) > 1.: | ||
| # print('max value is ', torch.max(y)) |
Comment on lines
+105
to
+106
| # if center: | ||
| # signal = F.pad(y[:, None, None, :], (n_fft // 2, n_fft // 2, 0, 0), mode = 'reflect').squeeze(1) |
| from openvoice import modules | ||
| from openvoice import attentions | ||
|
|
||
| from torch.nn import Conv1d, ConvTranspose1d, Conv2d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
این PR مسیر پردازش گفتار، مدیریت نمونههای صوتی و اتصال RAG به سرویسهای مدل را بهروزرسانی میکند و مشکلات خواندن متن فارسی و پایداری سرویسها را برطرف میکند.
تغییرات و رفع اشکالات:
اعتبارسنجی: