-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dasheng预训练模型返回值 #2
Comments
你好, 翰林 |
首先感谢您的回复! |
您好,
按照代码来说,我们实现的逻辑可以看到在: dasheng/dasheng/pretrained/pretrained.py Line 35 in c694902
如果输入超过target_length ( 10s ), 我们会把输入分成两块儿。把两块儿放到batch 维度 : dasheng/dasheng/pretrained/pretrained.py Line 49 in c694902
然后过模型以后会拼输出。 您跑过什么代码?有例子吗? 翰林 |
感谢您的回复! def process(filename, target_sr=16000, model_name="mispeech/dasheng-base"):
` |
你好, # pip install dasheng
python3 -c "from dasheng import dasheng_base; import torch; model = dasheng_base().eval(); features=model(torch.randn(1, 16000))" |
您好! |
其实这个问题不是特别大,可能后来会写。如果你有空也可以给我们写一个pr! 感谢! |
好的,感谢您的热心回复! |
您的工作非常出色!
但是我有个疑问, dasheng模型的返回值是
特别期待得到您的回复
感谢!
The text was updated successfully, but these errors were encountered: