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

Fedora41 语音降噪工具报错 #1914

Open
AXFOX opened this issue Jan 2, 2025 · 0 comments
Open

Fedora41 语音降噪工具报错 #1914

AXFOX opened this issue Jan 2, 2025 · 0 comments

Comments

@AXFOX
Copy link

AXFOX commented Jan 2, 2025

832 conda activate GPTSoVits
833 git clone https://github.com/RVC-Boss/GPT-SoVITS
834 git lfs pull
835 cd GPT-SoVITS/ && git lfs pull
836 conda activate GPTSoVits
python webui.py zh_CN
分割后启用降噪工具:
"/home/xfox/miniconda3/envs/GPTSoVits/bin/python" tools/cmd-denoise.py -i "output/slicer_opt" -o "output/denoise_opt" -p float16
2025-01-03 03:15:39,507 - modelscope - INFO - PyTorch version 2.1.1 Found.
2025-01-03 03:15:39,508 - modelscope - INFO - Loading ast index from /home/xfox/.cache/modelscope/ast_indexer
2025-01-03 03:15:39,535 - modelscope - INFO - Updating the files for the changes of local files, first time updating will take longer time! Please wait till updating done!
2025-01-03 03:15:39,542 - modelscope - INFO - AST-Scanning the path "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope" with the following sub folders ['models', 'metrics', 'pipelines', 'preprocessors', 'trainers', 'msdatasets', 'exporters']
Traceback (most recent call last):
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/ast_utils.py", line 466, in _get_single_file_scan_result
output = self.astScaner.generate_ast(file)
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/ast_utils.py", line 365, in generate_ast
output = self.scan_import(node, show_offsets=False)
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/ast_utils.py", line 164, in scan_import
local_out = _scan_import(el, type(el).name)
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/ast_utils.py", line 133, in _scan_import
return self.scan_import(
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/ast_utils.py", line 151, in scan_import
attr = getattr(node, field)
AttributeError: 'ClassDef' object has no attribute 'type_params'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/xfox/Apps/GPT-SoVITS/tools/cmd-denoise.py", line 4, in
from modelscope.pipelines import pipeline
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/init.py", line 4, in
from modelscope.utils.import_utils import LazyImportModule
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/init.py", line 1, in
from .hub import create_model_if_not_exist, read_config
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/hub.py", line 12, in
from modelscope.utils.config import Config
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/config.py", line 22, in
from modelscope.utils.import_utils import import_modules_from_file
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/import_utils.py", line 380, in
class LazyImportModule(ModuleType):
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/import_utils.py", line 383, in LazyImportModule
AST_INDEX = load_index()
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/ast_utils.py", line 722, in load_index
_update_index(index, files_mtime)
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/ast_utils.py", line 638, in _update_index
updated_index = file_scanner.get_files_scan_results(updated_files)
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/ast_utils.py", line 532, in get_files_scan_results
decorator_list, import_list = self._get_single_file_scan_result(
File "/home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/ast_utils.py", line 469, in _get_single_file_scan_result
raise Exception(
Exception: During ast indexing the file /home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/models/multi_modal/diffusion/unet_generator.py, a related error excepted in the file /home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/utils/ast_utils.py at line: 151: "attr = getattr(node, field)" with error msg: "AttributeError: 'ClassDef' object has no attribute 'type_params'", please double check the origin file /home/xfox/miniconda3/envs/GPTSoVits/lib/python3.9/site-packages/modelscope/models/multi_modal/diffusion/unet_generator.py to see whether the file is correctly edited.

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
@AXFOX and others