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

ImportError: cannot import name 'sequence_mask' from 'paddle.fluid.layers' 这个错误遇到过没 #3607

Open
bao17634 opened this issue Nov 22, 2023 · 1 comment
Assignees
Labels

Comments

@bao17634
Copy link

我的环境是Windows 10 python3.7 在运行PaddleSpeech就报下面的错误
File "generate_audio.py", line 15, in
from parakeet.models.fastspeech2 import FastSpeech2, FastSpeech2Inference
File "H:\PaddlePaddle-DeepSpeech\venv\lib\site-packages\parakeet_init_.py", line 20, in
from . import models
File "H:\PaddlePaddle-DeepSpeech\venv\lib\site-packages\parakeet\models_init_.py", line 15, in
from .fastspeech2 import *
File "H:\PaddlePaddle-DeepSpeech\venv\lib\site-packages\parakeet\models\fastspeech2_init_.py", line 15, in
from .fastspeech2 import *
File "H:\PaddlePaddle-DeepSpeech\venv\lib\site-packages\parakeet\models\fastspeech2\fastspeech2.py", line 24, in
from parakeet.modules.fastspeech2_predictor.duration_predictor import DurationPredictor
File "H:\PaddlePaddle-DeepSpeech\venv\lib\site-packages\parakeet\modules_init_.py", line 18, in
from .losses import *
File "H:\PaddlePaddle-DeepSpeech\venv\lib\site-packages\parakeet\modules\losses.py", line 15, in
from paddle.fluid.layers import sequence_mask
ImportError: cannot import name 'sequence_mask' from 'paddle.fluid.layers'

@zxcd
Copy link
Collaborator

zxcd commented Dec 8, 2023

版本问题参考:#3528

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

No branches or pull requests

2 participants