Caojunwei
|
25fad7d8dd
|
Add files via upload
当 API 接收到的 text 输入参数包含两个或两个以上的连续换行符 '\n' 时,使用 split('\n') 方法拆分字符串会在结果列表中产生空字符串元素 ('')。这会进一步导致在使用 torch.cat() 方法时抛出 RuntimeError,因为 torch.cat() 预期接收到的是一个非空的张量列表。
错误示例:
python
texts = "这是第一行\n\n这是第三行"
texts_split = texts.split('\n')
# texts_split 结果是 ['这是第一行', '', '这是第三行']
# 其中的 '' 会导致后续的 torch.cat() 操作失败
错误信息:
...
RuntimeError: torch.cat(): expected a non-empty list of Tensors
|
2024-02-22 18:42:31 +08:00 |
|
JavaAndPython55
|
4b0fae8302
|
新增api.py中:可在启动后动态修改模型,以此满足同一个api不同的朗读者请求
可在启动后动态修改模型,以此满足同一个api不同的朗读者请求
|
2024-02-21 18:11:59 +08:00 |
|
YongKang Zhou
|
72dca99288
|
fixed feature_extractor issue
|
2024-01-31 08:56:56 +00:00 |
|
YongKang Zhou
|
956ae58677
|
Update api.py
|
2024-01-31 10:47:13 +08:00 |
|
Wu Zichen
|
7259cc95fd
|
Update usage introduction, fix an error
|
2024-01-26 01:38:03 +08:00 |
|
RVC-Boss
|
edd807ffaa
|
Merge branch 'main' into mps
|
2024-01-25 23:25:58 +08:00 |
|
Miuzarte
|
e3a8c94387
|
在文件开头加了点说明
|
2024-01-25 19:54:43 +08:00 |
|
Lion-Wu
|
b942af74cc
|
Merge branch 'RVC-Boss:main' into mps
|
2024-01-25 02:10:02 +08:00 |
|
Miuzarte
|
5111713ed7
|
feat: api.py change refer
|
2024-01-24 20:16:39 +08:00 |
|
RVC-Boss
|
93dd8334f4
|
Update api.py
|
2024-01-24 17:02:18 +08:00 |
|
Wu Zichen
|
cb9d8fe8a5
|
mps support
|
2024-01-24 16:47:52 +08:00 |
|
Miuzarte
|
21b9c20fc8
|
config.py引入class, requirement补全, 自述追加已测试环境
|
2024-01-20 14:15:02 +08:00 |
|
謬紗特
|
192668435b
|
Match config.py
|
2024-01-19 14:15:35 +08:00 |
|
謬紗特
|
76164a0774
|
Add api.py
|
2024-01-19 14:08:31 +08:00 |
|