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

[S2T] ImportError: cannot import name 'sequence_mask' from 'paddle.fluid.layers' #3626

Open
bestlee666 opened this issue Nov 30, 2023 · 1 comment
Assignees
Labels

Comments

@bestlee666
Copy link

  • OS: Ubuntu 22.04
  • Python Version 3.11
  • PaddlePaddle Version 2.5.2

/code/PaddleSpeech$ paddlespeech asr --lang zh --input zh.wav
Traceback (most recent call last):
File "/home/lihuan/anaconda3/bin/paddlespeech", line 5, in
from paddlespeech.cli.entry import _execute
File "/home/lihuan/anaconda3/lib/python3.11/site-packages/paddlespeech/cli/init.py", line 23, in
from .tts import TTSExecutor
File "/home/lihuan/anaconda3/lib/python3.11/site-packages/paddlespeech/cli/tts/init.py", line 14, in
from .infer import TTSExecutor
File "/home/lihuan/anaconda3/lib/python3.11/site-packages/paddlespeech/cli/tts/infer.py", line 36, in
from paddlespeech.t2s.frontend import English
File "/home/lihuan/anaconda3/lib/python3.11/site-packages/paddlespeech/t2s/init.py", line 19, in
from . import models
File "/home/lihuan/anaconda3/lib/python3.11/site-packages/paddlespeech/t2s/models/init.py", line 14, in
from .fastspeech2 import *
File "/home/lihuan/anaconda3/lib/python3.11/site-packages/paddlespeech/t2s/models/fastspeech2/init.py", line 14, in
from .fastspeech2 import *
File "/home/lihuan/anaconda3/lib/python3.11/site-packages/paddlespeech/t2s/models/fastspeech2/fastspeech2.py", line 28, in
from paddlespeech.t2s.modules.nets_utils import initialize
File "/home/lihuan/anaconda3/lib/python3.11/site-packages/paddlespeech/t2s/modules/init.py", line 16, in
from .losses import *
File "/home/lihuan/anaconda3/lib/python3.11/site-packages/paddlespeech/t2s/modules/losses.py", line 20, in
from paddle.fluid.layers import sequence_mask
ImportError: cannot import name 'sequence_mask' from 'paddle.fluid.layers' (/home/lihuan/anaconda3/lib/python3.11/site-packages/paddle/fluid/layers/init.py)
(base) lihuan@lihuan:
/code/PaddleSpeech$

@bestlee666 bestlee666 changed the title [S2T]XXXX [S2T] ImportError: cannot import name 'sequence_mask' from 'paddle.fluid.layers' Nov 30, 2023
@zxcd zxcd assigned zxcd and unassigned zh794390558 Dec 8, 2023
@zxcd
Copy link
Collaborator

zxcd commented Dec 8, 2023

version problem can follow: #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

3 participants