-
Notifications
You must be signed in to change notification settings - Fork 85
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
[Feature] Support customized models path #140
Comments
I can help contribute to this feature, also I'd like to support other models like SenseVoice in the story. |
thx! Indeed, a "custom model dir" feature is necessary and worth developing. Regarding the "custom model dir" functionality, I'd like to add some context about the current code logic:
In short, this feature shouldn't be too difficult to implement. Feel free to ask if you have any questions. Regarding the SenseVoice model adaptation, I suggest opening a new issue to track and discuss it, as it might not be straightforward. For ASR models, we currently support the Whisper model, but we may not have considered issues like multiple models, model switching, or API parameters. Therefore, there might be matters unrelated to SenseVoice that need to be considered alongside it. thx again~ |
确认清单
功能描述
I used common models for different projects, but I don't want to copy these models to each projects cuz some model weight files consume large disk space. We can config model path in environments.
可能的解决方案
When we load model from path, we can firstly read from relative environment variables, if not found, we use default
./models/
path.For ChatTTS example in
modules/core/models/zoo/ChatTTS.py
we can define environment variables in
.env.global
just like.env.api
or.env.webui
The text was updated successfully, but these errors were encountered: