Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

ValueError: numpy.ndarray has the wrong size, try recompiling. Expected 88, got 96 #24

Closed
Irving-ren opened this issue Mar 14, 2023 · 3 comments

Comments

@Irving-ren
Copy link

Irving-ren commented Mar 14, 2023

Great work! This error occurred when extracting Hubert and f0 features. Is there any misusing part about hubert/checkpoint_best_legacy_500.pt? That was downloaded from http://obs.cstcloud.cn/share/obs/sankagenkeshi/checkpoint_best_legacy_500.pt
BTW, I was under the 4.0 version with python3.8. Thanks for your information

_Traceback (most recent call last):
File "/home/mike/anaconda3/envs/sovits/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/mike/anaconda3/envs/sovits/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self.kwargs)
File "/data/sdb/mike/repo/so-vits-svc/preprocess_hubert_f0.py", line 44, in process_batch
process_one(filename, hmodel)
File "/data/sdb/mike/repo/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 "/data/sdb/mike/repo/so-vits-svc/utils.py", line 156, in compute_f0_dio
import pyworld
File "/home/mike/anaconda3/envs/sovits/lib/python3.8/site-packages/pyworld/init.py", line 7, in
from .pyworld import *
File "init.pxd", line 199, in init pyworld.pyworld
ValueError: numpy.ndarray has the wrong size, try recompiling. Expected 88, got 96

@abysshal
Copy link

numpy version dismatch,
you may try this on ubuntu 20.04 - python3.8:
Flask==2.1.2 Flask_Cors==3.0.10 gradio==3.4.1 numpy==1.20.0 pyworld==0.3.0 scipy==1.7.3 SoundFile==0.12.1 torch==1.13.1 torchaudio==0.13.1 tqdm==4.63.0 scikit-maad praat-parselmouth onnx onnxsim onnxoptimizer fairseq==0.12.2 librosa==0.8.1 tensorboard tensorboardX

@Irving-ren
Copy link
Author

Thanks, It works like a charm!

@Cuieney
Copy link

Cuieney commented Apr 3, 2023

thx, macos m1 It's up and running

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants