Comments (2)
https://github.com/myshell-ai/MeloTTS/blob/main/docs/install.md#windows-and-macos-install
from melotts.
For Apple Silicon, when manually setting device to "cpu", there's a bug in MeloTTS/melo/text/chinese_bert.py
where the device is overridden to 'mps' raises an error that MPS storage location doesn't exist.
get_bert_feature() already has a "device" parameter -- it should be honored as-is.
Only if it's None, then the device should be auto-determined.
Make the following change:
def get_bert_feature(text, word2ph, device=None, model_id='hfl/chinese-roberta-wwm-ext-large')
...
- if (
- sys.platform == "darwin"
- and torch.backends.mps.is_available()
- and device == "cpu"
- ):
- device = "mps"
- if not device:
- device = "cuda"
+ if device is None:
+ if sys.platform == "darwin" and torch.backends.mps.is_available() and torch.backends.mps.is_built():
+ device = "mps"
+ elif torch.cuda.is_available() and torch.backends.cuda.is_built():
+ device = "cuda"
+ else:
+ device = "cpu"
from melotts.
Related Issues (20)
- AssertionError in the transforms.py file
- Error during Docker installation HOT 2
- When infer the local model, RuntimeError: Error(s) in loading state_dict for SynthesizerTrn
- Is it possible to control pitch at inference?
- 请问中文预训练模型在哪里可以下载? HOT 8
- 中文训练发音不标准
- Is it support korean? function error... HOT 1
- 在windows下docker安装报错,请问这是torch版本问题吗?
- so bad
- Can't fine-tune a model on my dataset in Google Colab
- when build docker, AttributeError: module 'botocore.exceptions' has no attribute 'HTTPClientError' HOT 3
- I need to help for working MeloTTS Korean in apple silicon python 3.10.14 (pyenv, virtualenv) HOT 3
- Request for PR review: Add support for Thai language HOT 18
- mecab-python3 and python-mecab-ko conflict HOT 1
- Python API BUG HOT 2
- ValueError: min() arg is an empty sequence HOT 3
- Failed building wheel for mecab-python-3 HOT 4
- 中文文本中夹杂的英文专业术语识别错误
- Docker build error. HOT 1
- Melo TTS pronounces "US" as "ʌs", not "ˌjuː ˈes".
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from melotts.