Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行出现的问题 #55

Open
112zxw opened this issue Aug 30, 2023 · 1 comment
Open

运行出现的问题 #55

112zxw opened this issue Aug 30, 2023 · 1 comment

Comments

@112zxw
Copy link

112zxw commented Aug 30, 2023

有没有大佬可以帮忙解决一下问题,运行train时报错
Traceback (most recent call last):
File "D:\pythonProject\work\Speech-Emotion-Recognition-master\train.py", line 55, in
train(config)
File "D:\pythonProject\work\Speech-Emotion-Recognition-master\train.py", line 22, in train
x_train, x_test, y_train, y_test = of.load_feature(config, config.train_feature_path_opensmile, train=True)
File "D:\pythonProject\work\Speech-Emotion-Recognition-master\extract_feats\opensmile.py", line 79, in load_feature
scaler = StandardScaler().fit(X)
File "D:\pythonProject\venv\lib\site-packages\sklearn\preprocessing_data.py", line 837, in fit
return self.partial_fit(X, y, sample_weight)
File "D:\pythonProject\venv\lib\site-packages\sklearn\base.py", line 1151, in wrapper
return fit_method(estimator, *args, **kwargs)
File "D:\pythonProject\venv\lib\site-packages\sklearn\preprocessing_data.py", line 873, in partial_fit
X = self._validate_data(
File "D:\pythonProject\venv\lib\site-packages\sklearn\base.py", line 604, in _validate_data
out = check_array(X, input_name="X", **check_params)
File "D:\pythonProject\venv\lib\site-packages\sklearn\utils\validation.py", line 969, in check_array
raise ValueError(
ValueError: Found array with 0 sample(s) (shape=(0, 1582)) while a minimum of 1 is required by StandardScaler.
求求了

@GOKINGD
Copy link

GOKINGD commented Mar 19, 2024

大概率是你没有按照顺序执行,需要先preprocess,再train。 检查yaml是否出现错误,preprocess是否正确提取特征

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

No branches or pull requests

2 participants