You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyTorch & onnxruntime-gpu: Use the latest PyTorch. Uninstall onnxruntime and install onnxruntime-gpu.
Encoding Fix (Resolving UnicodeDecodeError)
Problem: You might get a UnicodeDecodeError when running Vevo. This is because the code needs to be told to read vocab.json files using UTF-8 encoding.
Solution: Modify these two files:
models/tts/maskgct/g2p/g2p/g2p_generation.py:
Search for:with open("./models/tts/maskgct/g2p/g2p/vocab.json", "r") as f:
Replace with:with open("./models/tts/maskgct/g2p/g2p/vocab.json", "r", encoding='utf-8') as f:
models/tts/maskgct/g2p/g2p/__init__.py:
Search for:with open(vacab_path, "r") as f:
Replace with:with open(vacab_path, "r", encoding='utf-8') as f:
Adding encoding='utf-8' tells Python to correctly read the vocab.json files.
5. eSpeak-NG Paths in gardio.py: Verify/update these lines at the top of gardio.py to match your eSpeak-NG install path:
Quick Start Guide for Vevo (Amphion) 🚀
Want to try out Vevo from Amphion (https://github.com/open-mmlab/Amphion/tree/main/models/vc/vevo)? It's still early days, but here's a fast track to get it running.
Key Steps & Fixes:
requirements.txt
is incomplete. You'll likely need to update packages and install missing ones.C:\Program Files\eSpeak NG
.onnxruntime
and installonnxruntime-gpu
.UnicodeDecodeError
)Problem: You might get a
UnicodeDecodeError
when running Vevo. This is because the code needs to be told to readvocab.json
files using UTF-8 encoding.Solution: Modify these two files:
models/tts/maskgct/g2p/g2p/g2p_generation.py
:with open("./models/tts/maskgct/g2p/g2p/vocab.json", "r") as f:
with open("./models/tts/maskgct/g2p/g2p/vocab.json", "r", encoding='utf-8') as f:
models/tts/maskgct/g2p/g2p/__init__.py
:with open(vacab_path, "r") as f:
with open(vacab_path, "r", encoding='utf-8') as f:
Adding
encoding='utf-8'
tells Python to correctly read thevocab.json
files.5. eSpeak-NG Paths in
gardio.py
: Verify/update these lines at the top ofgardio.py
to match your eSpeak-NG install path:That's it for setup! Now you can run the Gradio UI with the
gardio.py
code below (place it in the root directory of theAmphion
repo).Run the Gradio UI:
Troubleshooting:
UnicodeDecodeError
: Double-check encoding fixes ing2p_generation.py
and__init__.py
.eSpeak-NG not found
: Verify install path ingardio.py
and that eSpeak-NG is correctly installed.Enjoy experimenting with Vevo! Let us know if you have questions or improvements.
The text was updated successfully, but these errors were encountered: