Fix MaskGCT/Metis dependencies #454
Open
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.
✨ Description
I tried to setup my environment for the Metis TTS model with
uv
. I am aware that you suggest usingconda
instead.Even if you discard this PR, I figured it could serve as reference for other users.
Running
uv run python -m models.tts.metis.metis_infer_tts
afteruv add --python 3.10 --requirements models/tts/maskgct/requirements.txt
resulted in the following runtime/dependency errors:ImportError: cannot import name 'setLangfilters' from 'LangSegment.LangSegment'
This is due to an error in the
LangSegment
library: An import contains removed functions. Previous versions aren't available on PyPI, so I had to patch it manually. See ishine/LangSegment@2ccc10b#r161867267RuntimeError: espeak not installed on your system
On macOS,
espeak-ng
installed with Homebrew was not detected for some reason. A solution is specifyingPHONEMIZER_ESPEAK_LIBRARY="$(brew --prefix espeak-ng)/lib/libespeak-ng.dylib"
ModuleNotFoundError: No module named 'peft'
ImportError: cannot import name 'clear_device_cache' from 'accelerate.utils.memory'
peft==0.14.*
ImportError: cannot import name 'EncoderDecoderCache' from 'transformers'
peft==0.13.2
ModuleNotFoundError: No module named 'langid'
This PR targets 3. and 4.
👨💻 Changes Proposed
models/tts/maskgct/requirements.txt
as suggested✅ Checklist