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

运行demo报错,提示不能导入某个包 #49

Open
panghongwei17 opened this issue Oct 20, 2022 · 2 comments
Open

运行demo报错,提示不能导入某个包 #49

panghongwei17 opened this issue Oct 20, 2022 · 2 comments

Comments

@panghongwei17
Copy link

您好, 执行python general_demo.py
报错。麻烦这个问题如何解决,谢谢
Traceback (most recent call last):
File "general_demo.py", line 6, in
from PaddleTools.TTS import TTSExecutor
File "/data/hwpang/2020_dev/gan/PaddleBoBo/PaddleTools/TTS.py", line 11, in
from paddlespeech.cli.utils import MODEL_HOME
ImportError: cannot import name 'MODEL_HOME' from 'paddlespeech.cli.utils' (/root/anaconda3/envs/paddle/lib/python3.8/site-packages/paddlespeech/cli/utils.py)

@Kedreamix
Copy link

我自己看了看paddlespeech的库,我终于发现了他的改动,在之前的时候,<=1.0的时候,这个都是正确的。但是如果默认下载了1.1或者1.2的版本,在PaddleTools中的TTS.py中,MODEL_HOME就会出现问题,这是因为换位置了,所以我们需要将其换为,ils.env import MODEL_HOME,亲测有效,或者安装paddlespeech为<=1.0的版本也可以,就直接不用改代码了

@MXF130
Copy link

MXF130 commented Jul 3, 2023

ImportError: cannot import name 'soft_relu' from 'paddle.fluid.layers.nn' (E:\anaconda\Anaconda\envs\Padd\lib\site-packages\paddle\fluid\layers\nn.py)

又出现了新的错误

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

3 participants