innnky / so-vits-svc

基于vits与softvc的歌声音色转换模型
GNU Affero General Public License v3.0
3.57k stars 1 forks source link

Error when execute python preprocess_hubert_f0.py #160

Closed JunityZhan closed 1 year ago

JunityZhan commented 1 year ago

[212] Loading hubert for content... load model(s) from hubert/checkpoint_best_legacy_500.pt INFO:fairseq.tasks.text_to_speech:Please install tensorboardX: pip install tensorboardX INFO:fairseq.tasks.hubert_pretraining:current directory is /root/so-vits-svc INFO:fairseq.tasks.hubert_pretraining:HubertPretrainingTask Config {'_name': 'hubert_pretraining', 'data': 'metadata', 'fine_tuning': False, 'labels': ['km'], 'label_dir': 'label', 'label_rate': 50.0, 'sample_rate': 16000, 'normalize': False, 'enable_padding': False, 'max_keep_size': None, 'max_sample_size': 250000, 'min_sample_size': 32000, 'single_target': False, 'random_crop': True, 'pad_audio': False} INFO:fairseq.models.hubert.hubert:HubertModel Config: {'_name': 'hubert', 'label_rate': 50.0, 'extractor_mode': default, 'encoder_layers': 12, 'encoder_embed_dim': 768, 'encoder_ffn_embed_dim': 3072, 'encoder_attention_heads': 12, 'activation_fn': gelu, 'layer_type': transformer, 'dropout': 0.1, 'attention_dropout': 0.1, 'activation_dropout': 0.0, 'encoder_layerdrop': 0.05, 'dropout_input': 0.1, 'dropout_features': 0.1, 'final_dim': 256, 'untie_final_proj': True, 'layer_norm_first': False, 'conv_feature_layers': '[(512,10,5)] + [(512,3,2)] 4 + [(512,2,2)] 2', 'conv_bias': False, 'logit_temp': 0.1, 'target_glu': False, 'feature_grad_mult': 0.1, 'mask_length': 10, 'mask_prob': 0.8, 'mask_selection': static, 'mask_other': 0.0, 'no_mask_overlap': False, 'mask_min_space': 1, 'mask_channel_length': 10, 'mask_channel_prob': 0.0, 'mask_channel_selection': static, 'mask_channel_other': 0.0, 'no_mask_channel_overlap': False, 'mask_channel_min_space': 1, 'conv_pos': 128, 'conv_pos_groups': 16, 'latent_temp': [2.0, 0.5, 0.999995], 'skip_masked': False, 'skip_nomask': False, 'checkpoint_activations': False, 'required_seq_len_multiple': 2, 'depthwise_conv_kernel_size': 31, 'attn_type': '', 'pos_enc_type': 'abs', 'fp16': False} Loaded hubert. 0%| | 0/212 [00:00<?, ?it/s]dataset/44k/tokaiteio/a124.wav 0%| | 0/212 [00:03<?, ?it/s] Process Process-1: Traceback (most recent call last): File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run self._target(*self._args, *self._kwargs) File "/root/so-vits-svc/preprocess_hubert_f0.py", line 44, in process_batch process_one(filename, hmodel) File "/root/so-vits-svc/preprocess_hubert_f0.py", line 34, in process_one f0 = utils.compute_f0_dio(wav, sampling_rate=sampling_rate, hop_length=hop_length) File "/root/so-vits-svc/utils.py", line 156, in compute_f0_dio import pyworld File "/usr/local/lib/python3.8/dist-packages/pyworld/init.py", line 7, in from .pyworld import File "init.pxd", line 199, in init pyworld.pyworld

numpy ==1.20.3, pyowrld == 0.2.5

JunityZhan commented 1 year ago

I solved it, just pip install --upgrade pyworld.