Stability-AI / stable-audio-tools

Generative models for conditional audio generation
MIT License
2.73k stars 259 forks source link

ModuleNotFoundError: No module named 'sklearn.preprocessing._csr_polynomial_expansion' #127

Open Yinghoo opened 4 months ago

Yinghoo commented 4 months ago

my python version is python3.12,is it conflict with python version?

H:\Stable AI-stale audio\stable-audio-tools>python run_gradio.py --ckpt-path ".\ckpt\model.ckpt" --model-config ".\ckpt\model_config.json" Traceback (most recent call last): File "H:\Stable AI-stale audio\stable-audio-tools\run_gradio.py", line 2, in from stable_audio_tools.interface.gradio import create_ui File "H:\Stable AI-stale audio\stable-audio-tools\stable_audio_tools\interface\gradio.py", line 10, in from aeiou.viz import audio_spectrogram_image File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\aeiou\viz.py", line 26, in from librosa import power_to_db File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\librosa__init.py", line 211, in from . import decompose File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\librosa\decompose.py", line 19, in import sklearn.decomposition File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearn\decomposition__init.py", line 8, in from ._dict_learning import ( File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearn\decomposition_dict_learning.py", line 22, in from ..linear_model import Lars, Lasso, LassoLars, orthogonal_mp_gram File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearn\linear_model__init.py", line 9, in from ._coordinate_descent import ( File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearn\linear_model_coordinate_descent.py", line 20, in from ..model_selection import check_cv File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearn\model_selection\init__.py", line 5, in from ._classification_threshold import ( File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearn\model_selection_classification_threshold.py", line 14, in from ..metrics import ( File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearn\metrics\init.py", line 3, in from . import cluster File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearn\metrics\cluster\init__.py", line 25, in from ._unsupervised import ( File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearn\metrics\cluster_unsupervised.py", line 15, in from ...preprocessing import LabelEncoder File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearn\preprocessing\init__.py", line 27, in from ._polynomial import PolynomialFeatures, SplineTransformer File "C:\Users\86132\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearn\preprocessing_polynomial.py", line 26, in from ._csr_polynomial_expansion import ( ModuleNotFoundError: No module named 'sklearn.preprocessing._csr_polynomial_expansion'