Closed Hu-chengyang closed 2 years ago
Hi, please install ParallelWaveGAN to use the PWG vocoder.
thank you,I will try
I still have a question,I want to know what this line of code means:convert.py :cmd = ['parallel-wavegan-decode', '--checkpoint', '/data2/hcy/VQMIVC-main/vocoder/checkpoint-3000000steps.pkl', '--feats-scp', f'{str(out_dir)}/feats.1.scp', '--outdir', str(out_dir)] subprocess.call(cmd)
And The ParallelWaveGAN file comes with itself in the source code folder. Do I still need to install ParallelWaveGAN? I've dragged the entire ParallelWaveGAN file to the vocoder directory before. I don't know if I'm doing this right?Thank you.
I still have a question,I want to know what this line of code means:convert.py :cmd = ['parallel-wavegan-decode', '--checkpoint', '/data2/hcy/VQMIVC-main/vocoder/checkpoint-3000000steps.pkl', '--feats-scp', f'{str(out_dir)}/feats.1.scp', '--outdir', str(out_dir)] subprocess.call(cmd)
It runs the command cmd
for generating waveform from the predicted mel-spectrograms.
And The ParallelWaveGAN file comes with itself in the source code folder. Do I still need to install ParallelWaveGAN? I've dragged the entire ParallelWaveGAN file to the vocoder directory before. I don't know if I'm doing this right?Thank you.
I think you still need to install ParallelWaveGAN.
thank you very much
I excute the code: pip install -e . ,houwever:ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Can you tell me how to solve this problem?
All the code:
(xll) liyp@amax:/data2/hcy/VQMIVC-main/vocoder/ParallelWaveGAN$ pip install -e .
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///data2/hcy/VQMIVC-main/vocoder/ParallelWaveGAN
Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=1.0.1 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from parallel-wavegan==0.5.3) (1.3.1)
Requirement already satisfied: setuptools>=38.5.1 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from parallel-wavegan==0.5.3) (45.1.0.post20200127)
Requirement already satisfied: librosa>=0.8.0 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from parallel-wavegan==0.5.3) (0.9.1)
Requirement already satisfied: soundfile>=0.10.2 in /home/liyp/.local/lib/python3.6/site-packages (from parallel-wavegan==0.5.3) (0.10.3.post1)
Requirement already satisfied: tensorboardX>=1.8 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from parallel-wavegan==0.5.3) (2.0)
Requirement already satisfied: matplotlib>=3.1.0 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from parallel-wavegan==0.5.3) (3.1.2)
Requirement already satisfied: PyYAML>=3.12 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from parallel-wavegan==0.5.3) (5.3)
Requirement already satisfied: tqdm>=4.26.1 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from parallel-wavegan==0.5.3) (4.49.0)
Requirement already satisfied: kaldiio>=2.14.1 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from parallel-wavegan==0.5.3) (2.17.2)
Requirement already satisfied: h5py>=2.9.0 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from parallel-wavegan==0.5.3) (2.10.0)
Collecting yq>=2.10.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e3/c3/d1e13511270441ebf8237fa0c969a33ccc720a609514ceaa1e1bc47d82e0/yq-2.14.0-py3-none-any.whl (16 kB)
Collecting gdown
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/5b/82/4d682a893626cd3436444130970443be0b101c39a92bce783dc920a767c8/gdown-4.4.0.tar.gz (14 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: filelock in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from parallel-wavegan==0.5.3) (3.0.12)
Requirement already satisfied: six in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from h5py>=2.9.0->parallel-wavegan==0.5.3) (1.14.0)
Requirement already satisfied: numpy>=1.7 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from h5py>=2.9.0->parallel-wavegan==0.5.3) (1.18.1)
Requirement already satisfied: audioread>=2.1.5 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from librosa>=0.8.0->parallel-wavegan==0.5.3) (2.1.8)
Requirement already satisfied: resampy>=0.2.2 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from librosa>=0.8.0->parallel-wavegan==0.5.3) (0.2.2)
Requirement already satisfied: packaging>=20.0 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from librosa>=0.8.0->parallel-wavegan==0.5.3) (20.9)
Requirement already satisfied: numba>=0.45.1 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from librosa>=0.8.0->parallel-wavegan==0.5.3) (0.48.0)
Requirement already satisfied: pooch>=1.0 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from librosa>=0.8.0->parallel-wavegan==0.5.3) (1.6.0)
Requirement already satisfied: joblib>=0.14 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from librosa>=0.8.0->parallel-wavegan==0.5.3) (0.14.1)
Requirement already satisfied: scipy>=1.2.0 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from librosa>=0.8.0->parallel-wavegan==0.5.3) (1.4.1)
Requirement already satisfied: scikit-learn>=0.19.1 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from librosa>=0.8.0->parallel-wavegan==0.5.3) (0.22.1)
Requirement already satisfied: decorator>=4.0.10 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from librosa>=0.8.0->parallel-wavegan==0.5.3) (4.4.1)
Requirement already satisfied: cycler>=0.10 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from matplotlib>=3.1.0->parallel-wavegan==0.5.3) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from matplotlib>=3.1.0->parallel-wavegan==0.5.3) (2.4.6)
Requirement already satisfied: python-dateutil>=2.1 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from matplotlib>=3.1.0->parallel-wavegan==0.5.3) (2.8.1)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from matplotlib>=3.1.0->parallel-wavegan==0.5.3) (1.1.0)
Requirement already satisfied: cffi>=1.0 in /home/liyp/.local/lib/python3.6/site-packages (from soundfile>=0.10.2->parallel-wavegan==0.5.3) (1.13.2)
Requirement already satisfied: protobuf>=3.8.0 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from tensorboardX>=1.8->parallel-wavegan==0.5.3) (3.15.6)
Collecting argcomplete>=1.8.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d3/e5/c5509683462e51b070df9e83e7f72c1ccfe3f733f328b4a0f06804c27278/argcomplete-2.0.0-py2.py3-none-any.whl (37 kB)
Collecting xmltodict>=0.11.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/28/fd/30d5c1d3ac29ce229f6bdc40bbc20b28f716e8b363140c26eff19122d8a5/xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB)
Collecting PyYAML>=3.12
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b3/85/79b9e5b4e8d3c0ac657f4e8617713cca8408f6cdc65d2ee6554217cedff1/PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (603 kB)
Requirement already satisfied: toml>=0.10.0 in /home/liyp/.local/lib/python3.6/site-packages (from yq>=2.10.0->parallel-wavegan==0.5.3) (0.10.2)
Collecting beautifulsoup4
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/69/bf/f0f194d3379d3f3347478bd267f754fc68c11cbf2fe302a6ab69447b1417/beautifulsoup4-4.10.0-py3-none-any.whl (97 kB)
|████████████████████████████████| 97 kB 348 kB/s
Requirement already satisfied: requests[socks] in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from gdown->parallel-wavegan==0.5.3) (2.24.0)
Requirement already satisfied: importlib-metadata<5,>=0.23 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from argcomplete>=1.8.1->yq>=2.10.0->parallel-wavegan==0.5.3) (4.5.0)
Requirement already satisfied: pycparser in /home/liyp/.local/lib/python3.6/site-packages (from cffi>=1.0->soundfile>=0.10.2->parallel-wavegan==0.5.3) (2.19)
Requirement already satisfied: llvmlite<0.32.0,>=0.31.0dev0 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from numba>=0.45.1->librosa>=0.8.0->parallel-wavegan==0.5.3) (0.31.0)
Requirement already satisfied: appdirs>=1.3.0 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from pooch>=1.0->librosa>=0.8.0->parallel-wavegan==0.5.3) (1.4.4)
Collecting soupsieve>1.2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/72/a6/fd01694427f1c3fcadfdc5f1de901b813b9ac756f0806ef470cfed1de281/soupsieve-2.3.1-py3-none-any.whl (37 kB)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from requests[socks]->gdown->parallel-wavegan==0.5.3) (1.25.11)
Requirement already satisfied: certifi>=2017.4.17 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from requests[socks]->gdown->parallel-wavegan==0.5.3) (2019.11.28)
Requirement already satisfied: chardet<4,>=3.0.2 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from requests[socks]->gdown->parallel-wavegan==0.5.3) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from requests[socks]->gdown->parallel-wavegan==0.5.3) (2.10)
Collecting PySocks!=1.5.7,>=1.5.6
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8d/59/b4572118e098ac8e46e399a1dd0f2d85403ce8bbaad9ec79373ed6badaf9/PySocks-1.7.1-py3-none-any.whl (16 kB)
Requirement already satisfied: zipp>=0.5 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from importlib-metadata<5,>=0.23->argcomplete>=1.8.1->yq>=2.10.0->parallel-wavegan==0.5.3) (3.4.1)
Requirement already satisfied: typing-extensions>=3.6.4 in /home/liyp/anaconda3/envs/xll/lib/python3.6/site-packages (from importlib-metadata<5,>=0.23->argcomplete>=1.8.1->yq>=2.10.0->parallel-wavegan==0.5.3) (3.7.4.3)
Building wheels for collected packages: gdown
Building wheel for gdown (pyproject.toml) ... done
Created wheel for gdown: filename=gdown-4.4.0-py3-none-any.whl size=14774 sha256=99c05b49257fe926d8c712b093e2aabc1b1f788a92d9cfd7cd0db20831025325
Stored in directory: /home/liyp/.cache/pip/wheels/3e/e9/5e/478e7d373bc35641a61ac36f83bf111a741031b08939e4aee6
Successfully built gdown
Installing collected packages: soupsieve, PySocks, xmltodict, PyYAML, beautifulsoup4, argcomplete, yq, gdown, parallel-wavegan
Attempting uninstall: PyYAML
Found existing installation: PyYAML 5.3
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
It seems that you have the problems when installing PyYAML, maybe you can try to uninstall it firstly, then install ParallelWaveGAN.
Thanks a lot
Dear Phd WANG: When I run the convert.py file, I meet this problem and i can not slove it, can you give me some suggest? Thank you very much! Error: Traceback (most recent call last): File "convert.py", line 168, in convert '--feats-scp', f'{str(out_dir)}/feats.1.scp', '--outdir', str(out_dir)]) File "/home/liyp/anaconda3/envs/xll/lib/python3.6/subprocess.py", line 287, in call with Popen(*popenargs, **kwargs) as p: File "/home/liyp/anaconda3/envs/xll/lib/python3.6/subprocess.py", line 729, in init restore_signals, start_new_session) File "/home/liyp/anaconda3/envs/xll/lib/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'parallel-wavegan-decode': 'parallel-wavegan-decode'